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

Skip to content

Commit b12b6a7

Browse files
authored
Merge pull request #7703 from matthew-brett/fix-namespace-searcher
TST: Convert namespace path to list
2 parents d8f535c + 10d94ae commit b12b6a7

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)