10000 CI: add py312 and py313 on windows on azure to test matrix by tacaswell · Pull Request #29473 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

CI: add py312 and py313 on windows on azure to test matrix #29473

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Jan 20, 2025

Conversation

tacaswell
Copy link
Member

Noted will looking at #29472 that we are only testing py310 and py311 on either windows platform.

@tacaswell tacaswell added this to the v3.11.0 milestone Jan 15, 2025
@QuLogic
Copy link
Member
QuLogic commented Jan 16, 2025

A change like this should fix the test:

diff --git a/lib/matplotlib/tests/test_animation.py b/lib/matplotlib/tests/test_animation.py
index 6a9f31733f..a2b35f802c 100644
--- a/lib/matplotlib/tests/test_animation.py
+++ b/lib/matplotlib/tests/test_animation.py
@@ -520,7 +520,7 @@ def test_disable_cache_warning(anim):
 
 def test_movie_writer_invalid_path(anim):
     if sys.platform == "win32":
-        match_str = r"\[WinError 3] .*'\\\\foo\\\\bar\\\\aardvark'"
+        match_str = r"\[WinError 3] .*\\\\foo\\\\bar\\\\aardvark'"
     else:
         match_str = r"\[Errno 2] .*'/foo"
     with pytest.raises(FileNotFoundError, match=match_str):

@tacaswell
Copy link
Member Author

Do we understand what changed in py313? From looking at the failing string it looks like Python now includes the full path with a drive? Strongly suspect it is python/cpython#119826 making an internal abspath call more correct.

@QuLogic
Copy link
Member
QuLogic commented Jan 17, 2025

That seems related from the changelog, but it was backported to 3.12.8, which didn't fail that first time.

@tacaswell
Copy link
Member Author

Interesting. However, given that this is the text of an error message (and I think including the drive letter is better) I don't think it is worth spending too much time to track it down.

@QuLogic
Copy link
Member
QuLogic commented Jan 17, 2025

Could be python/cpython#126780 as the input is a drive-relative path on Windows, and this wasn't backported to 3.12.

@timhoffm timhoffm merged commit 06548d2 into matplotlib:main Jan 20, 2025
41 checks passed
@tacaswell tacaswell deleted the ci/azure_py313 branch January 21, 2025 12:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0