From: Eric Snow Date: Fri, 1 Nov 2013 05:44:31 +0000 (-0600) Subject: Issue #19413: Disregard duplicate namespace portions during reload tests. X-Git-Tag: v3.4.0b1~439 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4ae17f50ed32e1eac8f6cbeb0b5bc22bd9638a60;p=thirdparty%2FPython%2Fcpython.git Issue #19413: Disregard duplicate namespace portions during reload tests. --- diff --git a/Lib/test/test_importlib/test_api.py b/Lib/test/test_importlib/test_api.py index 1fa905c82ee0..51266345bca7 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