Skip to content

Commit da8364a

Browse files
committed
Use raw string to fix Windows failures
1 parent 90d9149 commit da8364a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_pytest_mpl.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -698,8 +698,8 @@ def test_formats(pytester, use_hash_library, passes, file_format):
698698
f"""
699699
import pytest
700700
import matplotlib.pyplot as plt
701-
@pytest.mark.mpl_image_compare(baseline_dir='{baseline_dir_abs}',
702-
{f'hash_library="{hash_library}",' if use_hash_library else ''}
701+
@pytest.mark.mpl_image_compare(baseline_dir=r"{baseline_dir_abs}",
702+
{f'hash_library=r"{hash_library}",' if use_hash_library else ''}
703703
tolerance={DEFAULT_TOLERANCE},
704704
savefig_kwargs={{'format': '{file_format}'}})
705705
def test_format_{file_format}():

0 commit comments

Comments
 (0)