]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Issue #19413: Disregard duplicate namespace portions during reload tests.
authorEric Snow <ericsnowcurrently@gmail.com>
Fri, 1 Nov 2013 05:44:31 +0000 (23:44 -0600)
committerEric Snow <ericsnowcurrently@gmail.com>
Fri, 1 Nov 2013 05:44:31 +0000 (23:44 -0600)
Lib/test/test_importlib/test_api.py

index 1fa905c82ee0422b487cea4934d35c91559a7c91..51266345bca783a7f1bd2eb0bc17a21555714a64 100644 (file)
@@ -279,8 +279,8 @@ class ReloadTests:
                     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