Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 213b405

Browse files
committed
Issue #25487: Fix tests not updated when the imp module moved to a
DeprecationWarning. Thanks to Martin Panter for finding the tests.
1 parent c6d17c0 commit 213b405

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

Lib/modulefinder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import struct
1111
import warnings
1212
with warnings.catch_warnings():
13-
warnings.simplefilter('ignore', PendingDeprecationWarning)
13+
warnings.simplefilter('ignore', DeprecationWarning)
1414
import imp
1515

1616
# XXX Clean up once str8's cstor matches bytes.

Lib/test/test_imp.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
import unittest
1313
import warnings
1414
with warnings.catch_warnings():
15-
warnings.simplefilter('ignore', PendingDeprecationWarning)
15+
warnings.simplefilter('ignore', DeprecationWarning)
1616
import imp
1717

1818

0 commit comments

Comments
 (0)