mirror of
https://github.com/python/cpython
synced 2026-09-29 12:10:30 +03:00
Issue #19413: Disregard duplicate namespace portions during reload tests.
This commit is contained in:
parent
cdf601281f
commit
4ae17f50ed
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue