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 c302598

Browse filesBrowse files
story645meeseeksmachine
authored andcommitted
Backport PR #27377: TST: Make test_movie_writer_invalid_path locale-agnostic
1 parent 25d096f commit c302598
Copy full SHA for c302598

File tree

1 file changed

+2
-2
lines changed
Filter options

1 file changed

+2
-2
lines changed

‎lib/matplotlib/tests/test_animation.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_animation.py
+2-2Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.