[Python-checkins] cpython: Issue #19413: Disregard duplicate namespace portions during reload tests.

eric.snow python-checkins at python.org
Fri Nov 1 06:49:42 CET 2013


http://hg.python.org/cpython/rev/78d36d54391c
changeset:   86820:78d36d54391c
user:        Eric Snow <ericsnowcurrently at gmail.com>
date:        Thu Oct 31 23:44:31 2013 -0600
summary:
  Issue #19413: Disregard duplicate namespace portions during reload tests.

files:
  Lib/test/test_importlib/test_api.py |  4 ++--
  1 files changed, 2 insertions(+), 2 deletions(-)


diff --git a/Lib/test/test_importlib/test_api.py b/Lib/test/test_importlib/test_api.py
--- a/Lib/test/test_importlib/test_api.py
+++ b/Lib/test/test_importlib/test_api.py
@@ -279,8 +279,8 @@
                     del ns['__initializing__']
                     loader = ns.pop('__loader__')
                     path = ns.pop('__path__')
-                    self.assertEqual(list(path),
-                                     [os.path.dirname(bad_path)] * 2)
+                    self.assertEqual(set(path),
+                                     set([os.path.dirname(bad_path)]))
                     with self.assertRaises(AttributeError):
                         # a NamespaceLoader
                         loader.path

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list