summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorMiro HronĨok <miro@hroncok.cz>2021-06-18 20:02:45 (GMT)
committerGitHub <noreply@github.com>2021-06-18 20:02:45 (GMT)
commitdf1502e47fc1e0cf1e7d460ae04530c3e2e4a7c6 (patch)
tree40d2816d5388c594fc556adf962de7b9a0c046a1 /Misc
parentc106cf31f816f719de0a83ff31b9f4d0bea3519b (diff)
downloadcpython-df1502e47fc1e0cf1e7d460ae04530c3e2e4a7c6.zip
cpython-df1502e47fc1e0cf1e7d460ae04530c3e2e4a7c6.tar.gz
cpython-df1502e47fc1e0cf1e7d460ae04530c3e2e4a7c6.tar.bz2
bpo-44451: Reset DeprecationWarning filters in test_importlib.test_entry_points_by_index (GH-26784)
This avoids the following error if DeprecationWarnings are ignored. ====================================================================== ERROR: test_entry_points_by_index (test.test_importlib.test_metadata_api.APITests) Prior versions of Distribution.entry_points would return a ---------------------------------------------------------------------- Traceback (most recent call last): File "/builddir/build/BUILD/Python-3.10.0b3/Lib/test/test_importlib/test_metadata_api.py", line 145, in test_entry_points_by_index expected = next(iter(caught)) StopIteration ---------------------------------------------------------------------- Ran 1402 tests in 2.125s FAILED (errors=1, skipped=18, expected failures=1)
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/Tests/2021-06-18-15-19-35.bpo-44451.aj5pqE.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Tests/2021-06-18-15-19-35.bpo-44451.aj5pqE.rst b/Misc/NEWS.d/next/Tests/2021-06-18-15-19-35.bpo-44451.aj5pqE.rst
new file mode 100644
index 0000000..0f635cf
--- /dev/null
+++ b/Misc/NEWS.d/next/Tests/2021-06-18-15-19-35.bpo-44451.aj5pqE.rst
@@ -0,0 +1,3 @@
+Reset ``DeprecationWarning`` filters in
+``test.test_importlib.test_metadata_api.APITests.test_entry_points_by_index``
+to avoid ``StopIteration`` error if ``DeprecationWarnings`` are ignored.