diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2013-11-01 05:44:31 (GMT) |
---|---|---|
committer | Eric Snow <ericsnowcurrently@gmail.com> | 2013-11-01 05:44:31 (GMT) |
commit | 4ae17f50ed32e1eac8f6cbeb0b5bc22bd9638a60 (patch) | |
tree | ec9593d7e14ad4e9bfdc615a5342a9d41ee99a43 /Lib | |
parent | cdf601281f5909b4b7c6e1f10f3a80d3c216cdc3 (diff) | |
download | cpython-4ae17f50ed32e1eac8f6cbeb0b5bc22bd9638a60.zip cpython-4ae17f50ed32e1eac8f6cbeb0b5bc22bd9638a60.tar.gz cpython-4ae17f50ed32e1eac8f6cbeb0b5bc22bd9638a60.tar.bz2 |
Issue #19413: Disregard duplicate namespace portions during reload tests.
Diffstat (limited to 'Lib')
-rw-r--r-- | 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 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 |