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

DeprecationWarning.

Thanks to Martin Panter for finding the tests.
This commit is contained in:
Brett Cannon 2015-10-30 14:41:06 -07:00
parent c6d17c04bc
commit 213b4056a6
2 changed files with 2 additions and 2 deletions

View File

@ -10,7 +10,7 @@ import types
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.

View File

@ -12,7 +12,7 @@ from test import support
import unittest
import warnings
with warnings.catch_warnings():
warnings.simplefilter('ignore', PendingDeprecationWarning)
warnings.simplefilter('ignore', DeprecationWarning)
import imp