Skip to content

Commit 11eb674

Browse files
Fix test
1 parent 974dc99 commit 11eb674

1 file changed

Lines changed: 3 additions & 4 deletions

File tree

Lib/test/test_argparse.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import _colorize
44
import contextlib
55
import functools
6-
import inspect
76
import io
87
import operator
98
import os
@@ -7101,9 +7100,9 @@ def test_all_exports_everything_but_modules(self):
71017100
name
71027101
for name, value in vars(argparse).items()
71037102
if not (name.startswith("_") or name == 'ngettext')
7104-
if not (
7105-
inspect.ismodule(value)
7106-
or isinstance(value, types.LazyImportType)
7103+
if not isinstance(
7104+
value,
7105+
(types.ModuleType, types.LazyImportType),
71077106
)
71087107
]
71097108
self.assertEqual(sorted(items), sorted(argparse.__all__))

0 commit comments

Comments
 (0)