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 d0d2ac1

Browse filesBrowse files
authored
Merge pull request #27384 from meeseeksmachine/auto-backport-of-pr-27377-on-v3.8.x
Backport PR #27377 on branch v3.8.x (TST: Make test_movie_writer_invalid_path locale-agnostic)
2 parents 25d096f + c302598 commit d0d2ac1
Copy full SHA for d0d2ac1

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.