-
Notifications
You must be signed in to change notification settings - Fork 0
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
Update for matplotlib 3.9.0 #19
Conversation
@@ -319,7 +319,8 @@ def test_Quiver(self): | |||
|
|||
@animation_compare(baseline_images="Blocks/Surface", nframes=3) | |||
def test_Surface(self): | |||
if mpl._version.version_tuple < (3, 9): | |||
mpl_version = tuple([int(x) for x in mpl._version.version.split(".")[:3]]) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You may want to use packaging.version.parse
as is used in other tests instead.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For example, this is now breaking with 3.10.0rc1:
@animation_compare(baseline_images="Blocks/Surface", nframes=3)
def test_Surface(self):
> mpl_version = tuple([int(x) for x in mpl._version.version.split(".")[:3]])
E ValueError: invalid literal for int() with base 10: '0rc1'
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry for not fixing earlier:
844ab44
Do you want me to push the fix to fedora? Is rawhide sufficient?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test is the only failing one, so I suspect it will be fine:
https://copr.fedorainfracloud.org/coprs/qulogic/matplotlib-310/build/8245763/
But a build in Rawhide would be handy to check, or I could build the patch in this COPR.
Resolves: #18