-
Notifications
You must be signed in to change notification settings - Fork 33
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
test_install tests are failing on Fedora build #74
Comments
I can reproduce the problem on Alpine Linux edge using Python 3.11, so at least not Fedora specific. |
tblib doesn't support those precise error locations (PEP 657), not yet. This test doesn't fail locally for me most likely because a bug in python (the test is really complex). What patch versions do you have over there for pythons? |
Python 3.11.6 for Alpine Linux |
@PureTryOut does 04dc542 fix it? |
Sadly no, exact same error as before. |
Tried it on a |
Something like this reproduces it:
|
You can try from git in there (which doesn't pass either.) |
Ok try 66e14cd - pretty sure that works. |
Yep, that works for me at least, on all supported Fedora releases. |
I can confirm, that works on Alpine! |
With Python 3.13, we need to strip even harder, because we get location lines with differing amounts of tildes and up carets in them, e.g.: ~~^~~~~ and: ^^^^^^^ Let's ditch the regex and instead go line-by-line with a pretty loose match for anything that looks like a location line. Signed-off-by: Adam Williamson <[email protected]>
I'm not really sure why this is happening for me only, and not on CI, but all of
test_install
are failing except forprotocol=None
. This is during the build oftblib
for Fedora, and it occurs on all releases (so Python 3.11 and 3.12). The failures are all similar to the following:It appears that the exact location of the error was lost in the pickled traceback, so all the carets don't appear correctly. I wonder if this is somehow related to the
tblib
not saving/restoring thetb_lasti
attribute?Fedora 37 & 38 are Python 3.11, and Fedora 39 and Rawhide are Python 3.12. Pytest versions vary, if that matters, starting from 7.4.3 in Rawhide down to 7.1.3 in F37.
The text was updated successfully, but these errors were encountered: