Kaydet (Commit) 213b4056 authored tarafından Brett Cannon's avatar Brett Cannon

Issue #25487: Fix tests not updated when the imp module moved to a

DeprecationWarning.

Thanks to Martin Panter for finding the tests.
üst c6d17c04
...@@ -10,7 +10,7 @@ import types ...@@ -10,7 +10,7 @@ import types
import struct import struct
import warnings import warnings
with warnings.catch_warnings(): with warnings.catch_warnings():
warnings.simplefilter('ignore', PendingDeprecationWarning) warnings.simplefilter('ignore', DeprecationWarning)
import imp import imp
# XXX Clean up once str8's cstor matches bytes. # XXX Clean up once str8's cstor matches bytes.
......
...@@ -12,7 +12,7 @@ from test import support ...@@ -12,7 +12,7 @@ from test import support
import unittest import unittest
import warnings import warnings
with warnings.catch_warnings(): with warnings.catch_warnings():
warnings.simplefilter('ignore', PendingDeprecationWarning) warnings.simplefilter('ignore', DeprecationWarning)
import imp import imp
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment