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

This commit is contained in:
Eric Snow 2013-10-31 23:44:31 -06:00
parent cdf601281f
commit 4ae17f50ed

View 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