mirror of
https://github.com/python/cpython.git
synced 2025-09-27 10:50:04 +00:00
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
2 changed files with 2 additions and 2 deletions
|
@ -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
|
||||||
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
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue