diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2012-07-17 11:37:58 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2012-07-17 11:37:58 (GMT) |
commit | 94554921421145569bfa4319e0a0610afdb68c78 (patch) | |
tree | db38b15e0a7dcde4053ddae1158598f56973daaa | |
parent | b48ff7fdda149949c5af4123af9fec5aedc9f12b (diff) | |
download | cpython-94554921421145569bfa4319e0a0610afdb68c78.zip cpython-94554921421145569bfa4319e0a0610afdb68c78.tar.gz cpython-94554921421145569bfa4319e0a0610afdb68c78.tar.bz2 |
Issue #15314: Tweak a pkgutil test to hopefully be more Windows friendly
-rw-r--r-- | Lib/test/test_pkgutil.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_pkgutil.py b/Lib/test/test_pkgutil.py index 73c6869..88e2d33 100644 --- a/Lib/test/test_pkgutil.py +++ b/Lib/test/test_pkgutil.py @@ -285,8 +285,9 @@ class ImportlibMigrationTests(unittest.TestCase): self.assertEqual(len(w.warnings), 0) def test_get_importer_avoids_emulation(self): + # We use an illegal path so *none* of the path hooks should fire with check_warnings() as w: - self.assertIsNotNone(pkgutil.get_importer(sys.path[0])) + self.assertIsNone(pkgutil.get_importer("*??")) self.assertEqual(len(w.warnings), 0) def test_iter_importers_avoids_emulation(self): |