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:
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
......
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