summaryrefslogtreecommitdiffstats
path: root/Lib/importlib/test
diff options
context:
space:
mode:
authorFlorent Xicluna <florent.xicluna@gmail.com>2011-12-10 10:07:42 (GMT)
committerFlorent Xicluna <florent.xicluna@gmail.com>2011-12-10 10:07:42 (GMT)
commit67317750aff37489fd3fa279413ef20450e7c808 (patch)
treede83b05031484f7aad83149092c1ce9318b5ec3d /Lib/importlib/test
parent720682efd1a98dcd70a829c2a06f5fd07638af26 (diff)
downloadcpython-67317750aff37489fd3fa279413ef20450e7c808.zip
cpython-67317750aff37489fd3fa279413ef20450e7c808.tar.gz
cpython-67317750aff37489fd3fa279413ef20450e7c808.tar.bz2
Issue #13248: turn 3.2's PendingDeprecationWarning into 3.3's DeprecationWarning (cgi, importlib, nntplib, smtpd).
Diffstat (limited to 'Lib/importlib/test')
-rw-r--r--Lib/importlib/test/source/test_abc_loader.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/importlib/test/source/test_abc_loader.py b/Lib/importlib/test/source/test_abc_loader.py
index 3245907..3c19b0b 100644
--- a/Lib/importlib/test/source/test_abc_loader.py
+++ b/Lib/importlib/test/source/test_abc_loader.py
@@ -102,7 +102,7 @@ class PyLoaderMock(abc.PyLoader):
warnings.simplefilter("always")
path = super().get_filename(name)
assert len(w) == 1
- assert issubclass(w[0].category, PendingDeprecationWarning)
+ assert issubclass(w[0].category, DeprecationWarning)
return path
@@ -198,7 +198,7 @@ class PyPycLoaderMock(abc.PyPycLoader, PyLoaderMock):
warnings.simplefilter("always")
code_object = super().get_code(name)
assert len(w) == 1
- assert issubclass(w[0].category, PendingDeprecationWarning)
+ assert issubclass(w[0].category, DeprecationWarning)
return code_object
class PyLoaderTests(testing_abc.LoaderTests):