Skip to content

Commit c51f5ca

Browse files
committed
Merge pull request #7703 from matthew-brett/fix-namespace-searcher
TST: Convert namespace path to list
1 parent 6893334 commit c51f5ca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/testing/decorators.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ def find_dotted_module(module_name, path=None):
392392
file.close()
393393
except ImportError:
394394
# assume namespace package
395-
path = sys.modules[sub_mod].__path__
395+
path = list(sys.modules[sub_mod].__path__)
396396
res = None, path, None
397397
return res
398398

0 commit comments

Comments
 (0)