-
-
Notifications
You must be signed in to change notification settings - Fork 79
Add support for Python 3.11 #658
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
Conversation
I don't think Param relies on anything introduced in gmpy2, but if both work, feel free to switch it! |
In c08ea26 I tried to use
Also similarly to
Last update of |
assert inst.single_count == 1 | ||
finally: | ||
param.parameterized.async_executor = None | ||
# @pytest.mark.skipif(sys.version_info.major == 2, reason='asyncio only on Python 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.
@maximlt I think it might just be worth adding a comment to say this test can uncommented when python 2 is dropped.
This PR adds Python 3.11 in the test matrix. To get the test to pass on Python 3.11 I had to replace usages of
asyncio.coroutine
(deprecated since Python 3.8) by usingasync/await
keywords. Since they're not supported in Python 2 I had to move some of the tests to their own module to avoid them being collected when the test suite runs with Python 2.The last issue is related to gmpy that cannot get installed on Python 3.11 at the moment. Shouldn't Param instead use gmpy2?