[Python-checkins] cpython: Issue #25487: Fix tests not updated when the imp module moved to a
brett.cannon
python-checkins at python.org
Fri Oct 30 17:41:12 EDT 2015
https://hg.python.org/cpython/rev/3f924cb4c3eb
changeset: 98900:3f924cb4c3eb
user: Brett Cannon <brett at python.org>
date: Fri Oct 30 14:41:06 2015 -0700
summary:
Issue #25487: Fix tests not updated when the imp module moved to a
DeprecationWarning.
Thanks to Martin Panter for finding the tests.
files:
Lib/modulefinder.py | 2 +-
Lib/test/test_imp.py | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/Lib/modulefinder.py b/Lib/modulefinder.py
--- a/Lib/modulefinder.py
+++ b/Lib/modulefinder.py
@@ -10,7 +10,7 @@
import struct
import warnings
with warnings.catch_warnings():
- warnings.simplefilter('ignore', PendingDeprecationWarning)
+ warnings.simplefilter('ignore', DeprecationWarning)
import imp
# XXX Clean up once str8's cstor matches bytes.
diff --git a/Lib/test/test_imp.py b/Lib/test/test_imp.py
--- a/Lib/test/test_imp.py
+++ b/Lib/test/test_imp.py
@@ -12,7 +12,7 @@
import unittest
import warnings
with warnings.catch_warnings():
- warnings.simplefilter('ignore', PendingDeprecationWarning)
+ warnings.simplefilter('ignore', DeprecationWarning)
import imp
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list