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:
parent
c6d17c04bc
commit
213b4056a6
|
@ -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.
|
||||
|
|
|
@ -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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue