-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
chore: test with Python 3.12 #2270
Conversation
@giampaolo, the "bsd-tests / openbsd" failure seems unrelated to the modifications in this PR. |
56e2e6d
to
8c0e3df
Compare
@giampaolo, Getting Python 3.12 working is more & more important with rc1 just around the corner. |
Signed-off-by: mayeut <[email protected]>
Signed-off-by: mayeut <[email protected]>
There can be some small rounding errors due to float precision and how the sum gets computed. Use assertAlmostEqual with default parameters (allows for 1e-7 absolute error). Signed-off-by: mayeut <[email protected]>
From https://docs.python.org/3/c-api/arg.html Deprecated since version 3.3, will be removed in version 3.12: Part of the old-style Py_UNICODE API; please migrate to using PyUnicode_AsWideCharString(). Signed-off-by: mayeut <[email protected]>
The test was relying on a context switch to happen given a number of iterations of a specific code. The test began to fail on python 3.12 on macOS. Use time.sleep to force a context switch. Signed-off-by: mayeut <[email protected]>
b56eebc
to
ac577a6
Compare
Thank you Matthieu. |
* 'master' of https://github.com/giampaolo/psutil: fix var unbound (giampaolo#2245) Fix a dead link in the documentation (giampaolo#2280) chore: test with Python 3.12 (giampaolo#2270) chore(ci): fix linters job warning (giampaolo#2269) make flake8 happy add a fix-unittests make target to fix unit tests
Summary
Description
Update cibuildwheel
Test with Python 3.12
Fix comparison of sum of floats
Remove usage of PyArg_ParseTuple "u" on Python 3