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

http://hg.python.org/cpython/rev/78d36d54391c changeset: 86820:78d36d54391c user: Eric Snow <ericsnowcurrently@gmail.com> date: Thu Oct 31 23:44:31 2013 -0600 summary: Issue #19413: Disregard duplicate namespace portions during reload tests. files: Lib/test/test_importlib/test_api.py | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_importlib/test_api.py b/Lib/test/test_importlib/test_api.py --- a/Lib/test/test_importlib/test_api.py +++ b/Lib/test/test_importlib/test_api.py @@ -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 -- Repository URL: http://hg.python.org/cpython
participants (1)
-
eric.snow