-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
[Python 3.13.0b2] test_pdb_used_outside_test
and test_pdb_used_in_generate_tests
are failing with Python 3.13
#12497
Comments
test_pdb_used_outside_test
and test_pdb_used_in_generate_tests
are failing with Python 3.13
Interestingly, this isn't failing in pytest's own CI — what's the difference with the Ubuntu env? There's a new deprecation warning in the third beta, though: #12552. |
EDIT: With multiple runs the |
Is this related to the issue I'm having, where the pdb prompt is unresponsive to me? Under Python 3.13rc2, I run a failing test with
Edit: I'm unable to replicate the issue in Python 3.13rc2 as found in deadsnakes on Ubuntu, so the issue is probably with my manual build. |
@jaraco I'm having the same issue you mentioned with the official 3.13.0 release and pytest 8.3.3. I also just tested it with the current pytest main branch (8.4.0.dev109+gf37397470) and it's the same thing: if I pytest hits a breakpoint I don't have the pdb prompt and it's totally unresponsive (even ctrl+c cannot get me out of there). But I don't know if it's related to the original issue or if this should be a separate one. |
I believe the failed tests in the OP are due to With def test_pdb():
breakpoint()
x = 5 compare Python 3.12
with 3.13:
And the tests just seem to be expecting the former rather than the latter. As you can see, however, I cannot reproduce any issues with using pdb interactively, which seems to be a separate issue. @jaraco @bluthej I suggest you open an issue. @bluthej if you're on macOS as well, it might be something specific to that. |
@The-Compiler I'm actually on Linux, but I realize that I should have mentioned that I installed Python 3.13 with |
We skip almost all
Seems like a good thing to test, but please open an issue even if not. I think it's still worth investigating whether the issue is on pytest's side, and if so, we should see what we can do about it. Even if it only shows with that build, it might still not be their fault (unless they do some sort of patching there). |
Python 3.13 makes pdb break on the breakpoint() call, rather than on the next line: https://docs.python.org/3/whatsnew/3.13.html#pdb Also runs the pdb tests on Python 3.13 in CI. See pytest-dev#12884 for a more proper solution for that. Fixes pytest-dev#12497
Hello,
test_pdb_used_outside_test
andtest_pdb_used_in_generate_tests
are failing with Python 3.13 beta 2 on Fedora Rawhide. The same error was observed also with pytest 7.4.3.The text was updated successfully, but these errors were encountered: