Commit b041a7f9 authored by Eric Snow's avatar Eric Snow

Issue #19413: Disregard duplicate namespace portions during reload tests.

parent f6c4304b
...@@ -279,8 +279,8 @@ class ReloadTests: ...@@ -279,8 +279,8 @@ class ReloadTests:
del ns['__initializing__'] del ns['__initializing__']
loader = ns.pop('__loader__') loader = ns.pop('__loader__')
path = ns.pop('__path__') path = ns.pop('__path__')
self.assertEqual(list(path), self.assertEqual(set(path),
[os.path.dirname(bad_path)] * 2) set([os.path.dirname(bad_path)]))
with self.assertRaises(AttributeError): with self.assertRaises(AttributeError):
# a NamespaceLoader # a NamespaceLoader
loader.path loader.path
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment