[Python-checkins] cpython: Issue #15314: Tweak a pkgutil test to hopefully be more Windows friendly
nick.coghlan
python-checkins at python.org
Tue Jul 17 13:38:59 CEST 2012
http://hg.python.org/cpython/rev/16e50e85d684
changeset: 78155:16e50e85d684
user: Nick Coghlan <ncoghlan at gmail.com>
date: Tue Jul 17 21:37:58 2012 +1000
summary:
Issue #15314: Tweak a pkgutil test to hopefully be more Windows friendly
files:
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
--- a/Lib/test/test_pkgutil.py
+++ b/Lib/test/test_pkgutil.py
@@ -285,8 +285,9 @@
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):
--
Repository URL: http://hg.python.org/cpython
More information about the Python-checkins
mailing list