-
-
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
python3.11: failing test_log_messages_have_correct_metadata_echo #8019
Comments
hey there - yes packagers testing on 3.11 are hitting some small issues and as yet we've not been able to test effectively on 3.11 due to the non-availability of greenlet and cython for python 3.11. Greenlet in particular. We hope to integrate 3.11 into our CI once we can get Greenlet to build (maybe it can now, wasn't working a couple of weeks ago). from a packaging perspective I would add patchfiles to patch out this test for now. |
@zzzeek Thanks for the reply. |
we already hit this at Red Hat so I will likely have to run the tests in CI without the greenlet dependency (which is supported, just requires exception cases written out everywhere). |
Ive pinged python-greenlet/greenlet#288 on this. I will try to seek adjusting tox to build without greenlet for py311 |
Mike Bayer has proposed a fix for this issue in the main branch: Install on py311 without greenlet; test support https://gerrit.sqlalchemy.org/c/sqlalchemy/sqlalchemy/+/3839 |
@arthurzam do you have a working greenlet build for py311? like a patchfile or something. If I could just put up a fork that builds it would make life a lot simpler on this end rather than skipping it everywhere |
nm i got one from their PRs |
Mike Bayer has proposed a fix for this issue in the rel_1_4 branch: Install greenlet from a py311 compat patch https://gerrit.sqlalchemy.org/c/sqlalchemy/sqlalchemy/+/3841 |
to make it more fun, the issue is in py3.11.0b1 and not a4 which is what's on the CI machines, where we have a different failure, so having to upgrade the CI machines |
Fixed issue where support for logging "stacklevel" implemented in :ticket:`7612` required adjustment to work with recently released Python 3.11.0b1, also repairs the unit tests which tested this feature. Install greenlet from a py311 compat patch. re: the stacklevel thing, this is going to be very inconvenient if we have to keep hardcoding numbers everywhere for every new python version Change-Id: I0c8f7293e98c0ca5cc544538284bfd1d3020cb1f References: python-greenlet/greenlet#288 Fixes: #8019 (cherry picked from commit 43ff5b82dc0d91cacd625ac8943622ab340958c5)
Describe the bug
On Gentoo we are currently testing and bumping packages for python 3.11 (currently in beta), during which we try to run the full test suite of package.
We noticed a failure in one single test
test_log_messages_have_correct_metadata_echo
in the filetest/test_logging.py
To Reproduce
Running the following reproduces the test failure on python3.11:
`pytest -s -ra -l -vv test/engine/test_logging.py::TransactionContextLoggingTest::test_log_messages_have_correct_metadata_echo`
Same command for
pypy3
,python3.8
,python3.9
,python3.10
passesError
Versions
Additional context
No response
The text was updated successfully, but these errors were encountered: