We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c0858b commit f2482cbCopy full SHA for f2482cb
1 file changed
Lib/test/test___all__.py
@@ -48,6 +48,7 @@ def check_all(self, modname):
48
raise FailedImport(modname)
49
if not hasattr(sys.modules[modname], "__all__"):
50
raise NoAll(modname)
51
+
52
names = {}
53
with self.subTest(module=modname):
54
with warnings_helper.check_warnings(
@@ -72,6 +73,9 @@ def check_all(self, modname):
72
73
all_set = set(all_list)
74
self.assertCountEqual(all_set, all_list, "in module {}".format(modname))
75
self.assertEqual(keys, all_set, "in module {}".format(modname))
76
+ # Verify __dir__ is non-empty and doesn't produce an error
77
+ self.assertTrue(dir(sys.modules[modname]))
78
79
80
def walk_modules(self, basedir, modpath):
81
for fn in sorted(os.listdir(basedir)):
0 commit comments