Thanks to visit codestin.com Credit goes to github.com
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 8f1602b + c1b430b commit 05b56eaCopy full SHA for 05b56ea
lib/matplotlib/testing/decorators.py
@@ -502,7 +502,7 @@ def _image_directories(func):
502
``$(pwd)/result_images/test_baz``. The result directory is created if it
503
doesn't exist.
504
"""
505
- module_path = Path(sys.modules[func.__module__].__file__)
+ module_path = Path(inspect.getfile(func))
506
baseline_dir = module_path.parent / "baseline_images" / module_path.stem
507
result_dir = Path().resolve() / "result_images" / module_path.stem
508
result_dir.mkdir(parents=True, exist_ok=True)
0 commit comments