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

Skip to content

Commit 1c93e76

Browse files
authored
Merge pull request #16902 from anntzer/comparesuffix
Remove dot from suffix in testing.compare.
2 parents c080824 + 8e43c9b commit 1c93e76

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/matplotlib/testing/compare.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ def convert(filename, cache):
262262
if path.suffix[1:] not in converter:
263263
import pytest
264264
pytest.skip(f"Don't know how to convert {path.suffix} files to png")
265-
newpath = path.parent / f"{path.stem}_{path.suffix}.png"
265+
newpath = path.parent / f"{path.stem}_{path.suffix[1:]}.png"
266266

267267
# Only convert the file if the destination doesn't already exist or
268268
# is out of date.

0 commit comments

Comments
 (0)