We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 0c9ca6b + f3e15ff commit a73fd66Copy full SHA for a73fd66
lib/matplotlib/testing/decorators.py
@@ -479,7 +479,7 @@ def _image_directories(func):
479
``$(pwd)/result_images/test_baz``. The result directory is created if it
480
doesn't exist.
481
"""
482
- module_path = Path(sys.modules[func.__module__].__file__)
+ module_path = Path(inspect.getfile(func))
483
baseline_dir = module_path.parent / "baseline_images" / module_path.stem
484
result_dir = Path().resolve() / "result_images" / module_path.stem
485
result_dir.mkdir(parents=True, exist_ok=True)
0 commit comments