8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 25d096f + c302598 commit d0d2ac1Copy full SHA for d0d2ac1
lib/matplotlib/tests/test_animation.py
@@ -545,9 +545,9 @@ def test_disable_cache_warning(anim):
545
546
def test_movie_writer_invalid_path(anim):
547
if sys.platform == "win32":
548
- match_str = re.escape("[WinError 3] The system cannot find the path specified:")
+ match_str = r"\[WinError 3] .*'\\\\foo\\\\bar\\\\aardvark'"
549
else:
550
- match_str = re.escape("[Errno 2] No such file or directory: '/foo")
+ match_str = r"\[Errno 2] .*'/foo"
551
with pytest.raises(FileNotFoundError, match=match_str):
552
anim.save("/foo/bar/aardvark/thiscannotreallyexist.mp4",
553
writer=animation.FFMpegFileWriter())
0 commit comments