Lines Matching refs:modname
41 def check_all(self, modname):
44 (f".*{modname}", DeprecationWarning),
50 exec("import %s" % modname, names)
55 raise FailedImport(modname)
56 if not hasattr(sys.modules[modname], "__all__"):
57 raise NoAll(modname)
59 with self.subTest(module=modname):
65 exec("from %s import *" % modname, names)
69 modname, e.__class__.__name__, e))
77 all_list = sys.modules[modname].__all__
79 self.assertCountEqual(all_set, all_list, "in module {}".format(modname))
80 self.assertEqual(keys, all_set, "in module {}".format(modname))
111 for path, modname in self.walk_modules(lib_dir, ""):
112 m = modname
122 print(modname)
128 raise NoAll(modname)
129 self.check_all(modname)
131 ignored.append(modname)
133 failed_imports.append(modname)