Skip to content

Commit 19e1a3a

Browse files
committed
changed the order of checks in the test_others function
1 parent cd3f0bb commit 19e1a3a

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

Lib/test/test_pyclbr.py

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -246,15 +246,15 @@ def test_others(self):
246246
# These were once some of the longest modules.
247247
cm('random', ignore=('Random',)) # from _random import Random as CoreGenerator
248248
cm('pickle', ignore=('partial', 'PickleBuffer'))
249+
with warnings.catch_warnings():
250+
warnings.simplefilter('ignore', DeprecationWarning)
251+
cm('sre_parse', ignore=('dump', 'groups', 'pos')) # from sre_constants import *; property
249252
with temporary_main_spec():
250-
self.checkModule(
253+
cm(
251254
'pdb',
252255
ignore=('_ModuleTarget', '_ScriptTarget', '_ZipTarget', 'Pdb'),
253256
)
254-
with warnings.catch_warnings():
255-
warnings.simplefilter('ignore', DeprecationWarning)
256-
cm('sre_parse', ignore=('dump', 'groups', 'pos')) # from sre_constants import *; property
257-
cm('pydoc', ignore=('input', 'output',)) # properties
257+
cm('pydoc', ignore=('input', 'output',)) # properties
258258

259259
# Tests for modules inside packages
260260
cm('email.parser')

0 commit comments

Comments
 (0)