Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 10d94ae

Browse files
committed
BF: Convert namespace path to list
For some reason, on some systems, the ``__path__`` attribute of a module is a _NamespacePath, not a list, as we expected - see: MacPython/matplotlib-wheels#2
1 parent 32fd303 commit 10d94ae

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/testing/decorators.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -461,7 +461,7 @@ def find_dotted_module(module_name, path=None):
461461
file.close()
462462
except ImportError:
463463
# assume namespace package
464-
path = sys.modules[sub_mod].__path__
464+
path = list(sys.modules[sub_mod].__path__)
465465
res = None, path, None
466466
return res
467467

0 commit comments

Comments
 (0)