Thanks to visit codestin.com Credit goes to github.com
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 b48ff7f commit 9455492Copy full SHA for 9455492
1 file changed
Lib/test/test_pkgutil.py
@@ -285,8 +285,9 @@ def test_get_loader_avoids_emulation(self):
285
self.assertEqual(len(w.warnings), 0)
286
287
def test_get_importer_avoids_emulation(self):
288
+ # We use an illegal path so *none* of the path hooks should fire
289
with check_warnings() as w:
- self.assertIsNotNone(pkgutil.get_importer(sys.path[0]))
290
+ self.assertIsNone(pkgutil.get_importer("*??"))
291
292
293
def test_iter_importers_avoids_emulation(self):
0 commit comments