(original) (raw)

changeset: 86820:78d36d54391c user: Eric Snow ericsnowcurrently@gmail.com date: Thu Oct 31 23:44:31 2013 -0600 files: Lib/test/test_importlib/test_api.py description: Issue #19413: Disregard duplicate namespace portions during reload tests. diff -r 88c3a1a3c2ff -r 78d36d54391c Lib/test/test_importlib/test_api.py --- a/Lib/test/test_importlib/test_api.py Thu Oct 31 22:22:15 2013 -0600 +++ b/Lib/test/test_importlib/test_api.py Thu Oct 31 23:44:31 2013 -0600 @@ -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 /ericsnowcurrently@gmail.com