]> granicus.if.org Git - python/commit
[3.7] bpo-32691: Use mod_spec.parent when running modules with pdb (GH-5510)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sun, 4 Feb 2018 08:07:16 +0000 (00:07 -0800)
committerNick Coghlan <ncoghlan@gmail.com>
Sun, 4 Feb 2018 08:07:16 +0000 (18:07 +1000)
commit1a0239e12e161609fdf68f13cedbabca9bf353f1
tree2d12336d203db5517abbc59191acd97dade92af9
parent133514e9dcea9c8cc9d9dd459b1a7fb502747d7e
[3.7] bpo-32691: Use mod_spec.parent when running modules with pdb (GH-5510)

Previously the module name was used, which broke relative imports when pdb was run against a plain module or submodule.
(cherry picked from commit 38bfa8418f5d39bcc7478b8f7aef4a632c26172e)

Co-authored-by: Mario Corchero <mariocj89@gmail.com>
Lib/pdb.py
Lib/test/test_pdb.py
Misc/NEWS.d/next/Library/2018-02-01-15-53-35.bpo-32691.VLWVTq.rst [new file with mode: 0644]