]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44461: Check early that a pdb target is valid for execution. (#27227)
authorJason R. Coombs <jaraco@jaraco.com>
Wed, 28 Jul 2021 01:51:42 +0000 (21:51 -0400)
committerGitHub <noreply@github.com>
Wed, 28 Jul 2021 01:51:42 +0000 (21:51 -0400)
commitee03bad25e83b00ba5fc2a0265b48c6286e6b3f7
tree158d1626a8fe583ee120147abbc649a4e7d21a0a
parent38ddc8beb38d9a685de296a58b0741850e4853e5
bpo-44461: Check early that a pdb target is valid for execution. (#27227)

* bpo-44461: Fix bug with pdb's handling of import error due to a package which does not have a __main__ module

* ðŸ“œðŸ¤– Added by blurb_it.

* remove "else"

Co-authored-by: Jason R. Coombs <jaraco@jaraco.com>
* If running as a module, first check that it can run as a module. Alternate fix for bpo-44461.

Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com>
Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
Lib/pdb.py
Lib/test/test_pdb.py
Misc/NEWS.d/next/Library/2021-06-29-21-17-17.bpo-44461.acqRnV.rst [new file with mode: 0644]