8000 Merge pull request #27377 from StefRe/fix/test_anim_locale · matplotlib/matplotlib@adb9fd4 · GitHub
[go: up one dir, main page]

Skip to content

Commit adb9fd4

Browse files
authored
Merge pull request #27377 from StefRe/fix/test_anim_locale
TST: Make test_movie_writer_invalid_path locale-agnostic
2 parents 4394666 + 7ff0760 commit adb9fd4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/matplotlib/tests/test_animation.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numb 78B0 erDiff line change
@@ -545,9 +545,9 @@ def test_disable_cache_warning(anim):
545545

546546
def test_movie_writer_invalid_path(anim):
547547
if sys.platform == "win32":
548-
match_str = re.escape("[WinError 3] The system cannot find the path specified:")
548+
match_str = r"\[WinError 3] .*'\\\\foo\\\\bar\\\\aardvark'"
549549
else:
550-
match_str = re.escape("[Errno 2] No such file or directory: '/foo")
550+
match_str = r"\[Errno 2] .*'/foo"
551551
with pytest.raises(FileNotFoundError, match=match_str):
552552
anim.save("/foo/bar/aardvark/thiscannotreallyexist.mp4",
553553
writer=animation.FFMpegFileWriter())

0 commit comments

Comments
 (0)
0