Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 8e43c9b

Browse filesBrowse files
committed
Remove dot from suffix in testing.compare.
... otherwise a spurious dot ends up in the converted filename.
1 parent c080824 commit 8e43c9b
Copy full SHA for 8e43c9b

File tree

Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+1
-1
lines changed

‎lib/matplotlib/testing/compare.py

Copy file name to clipboardExpand all lines: lib/matplotlib/testing/compare.py
+1-1Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.