Skip to content
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

Tests fail in upcoming Python 3.13 #279

Open
troycurtisjr opened this issue May 19, 2024 · 1 comment
Open

Tests fail in upcoming Python 3.13 #279

troycurtisjr opened this issue May 19, 2024 · 1 comment

Comments

@troycurtisjr
Copy link

The Fedora team is testing Python packages against the upcoming Python 3.13 release (which is currently in Beta testing)
, and ipdb 0.13.13 tests fail on this version. In the test OptsTest.test_debug_module_script_3_11 it goes into an infinite loop printing:

ImportError: No module named my_buggy_module_3_11
The program exited via sys.exit(). Exit status: 1
ImportError: No module named my_buggy_module_3_11
The program exited via sys.exit(). Exit status: 1

It looks like there were quite a few changes to Python's pdb module since 3.12. I've poked around a bit to determine what the issue is, but I'm not very familiar with the ipdb or pdb implementation details. One interesting change that I noted was that the pdb._user_requested_quit check was moved out of the try clause in the main loop of pdb. It looks like the ipdb is based largely on this arrangement, so it may also need to be tweaked in a similar fashion (though just doing so breaks other tests, though it does fix the infinite loop!)

I'll continue poking around in an effort to understand what is going on, but I opted to create this issue in case others are interested in helping to investigate.

To test, you can use the instructions found in the Fedora copr repo: https://copr.fedorainfracloud.org/coprs/g/python/python3.13/ though that might leverage tooling which is very specific to Fedora.

@troycurtisjr
Copy link
Author

The patch file for the pdb modules changes from 3.12.3 to 3.13 which might be of interest:

pdb-3.12-to-3.13-changes-patch.txt

bmwiedemann pushed a commit to bmwiedemann/openSUSE that referenced this issue Nov 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant