Lines Matching refs:modname
16 def check_all(self, modname): argument
24 exec("import %s" % modname, names)
29 raise FailedImport(modname)
30 if not hasattr(sys.modules[modname], "__all__"):
31 raise NoAll(modname)
33 with self.subTest(module=modname):
39 exec("from %s import *" % modname, names)
43 modname, e.__class__.__name__, e))
51 all_list = sys.modules[modname].__all__
53 self.assertCountEqual(all_set, all_list, "in module {}".format(modname))
54 self.assertEqual(keys, all_set, "in module {}".format(modname))
85 for path, modname in self.walk_modules(lib_dir, ""):
86 m = modname
96 print(modname)
102 raise NoAll(modname)
103 self.check_all(modname)
105 ignored.append(modname)
107 failed_imports.append(modname)