From 4ae17f50ed32e1eac8f6cbeb0b5bc22bd9638a60 Mon Sep 17 00:00:00 2001 From: Eric Snow Date: Thu, 31 Oct 2013 23:44:31 -0600 Subject: Issue #19413: Disregard duplicate namespace portions during reload tests. --- Lib/test/test_importlib/test_api.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_importlib/test_api.py b/Lib/test/test_importlib/test_api.py index 1fa905c..5126634 100644 --- a/Lib/test/test_importlib/test_api.py +++ b/Lib/test/test_importlib/test_api.py @@ -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 -- cgit v0.12