summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pdb.py
Commit message (Collapse)AuthorAgeFilesLines
* [3.8] bpo-42383: pdb: do not fail to restart the target if the current ↵Andrey Bienkowski2021-01-261-0/+23
| | | | directory changed (GH-23412) (#24323)
* [3.8] bpo-42384: pdb: correctly populate sys.path[0] (GH-23338) (#24320)Andrey Bienkowski2021-01-251-0/+42
|
* bpo-41609: Fix output of pdb's whatis command for instance methods ↵Miss Islington (bot)2020-08-271-0/+41
| | | | | | | (GH-21935) (#21976) (cherry picked from commit 022bc7572f061e1d1132a4db9d085b29707701e7) Co-authored-by: Irit Katriel <iritkatriel@yahoo.com>
* bpo-41058: Use source file encoding in pdb.find_function(). (GH-21010)Miss Islington (bot)2020-06-211-13/+39
| | | | | (cherry picked from commit 19fcffa92773e008e4f5efb80047420a0cfafeec) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
* bpo-36250: ignore ValueError from signal in non-main thread (GH-12251)Miss Islington (bot)2019-09-091-0/+29
| | | | | | Authored-By: blueyed <github@thequod.de> (cherry picked from commit 8d64bfafdffd9f866bb6ac2e5b4c4bdfcb16aea0) Co-authored-by: Daniel Hahler <github@thequod.de>
* bpo-20523: pdb searches for .pdbrc in ~ instead of $HOME (GH-11847)Miss Islington (bot)2019-08-021-0/+13
| | | | | | | | | | | | | | | | | | Previously pdb checked the $HOME environmental variable to find the user .pdbrc. If $HOME is not set, the user .pdbrc would not be found. Change pdb to use `os.path.expanduser('~')` to determine the user's home directory. Thus, if $HOME is not set (as in tox or on Windows), os.path.expanduser('~') falls back on other techniques for locating the user's home directory. This follows pip's implementation for loading .piprc. Co-authored-by: Dan Lidral-Porter <dlp@aperiodic.org> (cherry picked from commit 7ea9a85f132b32347fcbd2cbe1b553a2e9890b56) Co-authored-by: Timothy Hopper <tdhopper@users.noreply.github.com>
* bpo-36969: Make PDB args command display positional only arguments (GH-13459)Rémi Lapeyre2019-05-241-5/+28
|
* bpo-36969: Make PDB args command display keyword only arguments (GH-13452)Rémi Lapeyre2019-05-201-4/+21
|
* bpo-13120: fix typo with test_issue13120() method name (GH-12250)Daniel Hahler2019-04-011-3/+3
| | | | | | Incorrect issue number '13210' added in 539ee5da6f. https://bugs.python.org/issue13120
* bpo-35931: Gracefully handle any exception in pdb debug command (GH-12103)Daniel Hahler2019-03-121-4/+18
| | | | This is relevant for `debug doesnotexist()`, which would crash with a NameError otherwise.
* bpo-35931: Gracefully handle SyntaxError in pdb debug command (GH-11782)Daniel Hahler2019-02-151-0/+8
| | | | | | | | Previously, `debug print(` would cause the interpreter to exit on a SyntaxError whereas `print(` would properly display the error and return to the pdb prompt. This patch fixes this by pre-compiling the code before passing it to `Pdb.run`. https://bugs.python.org/issue35931
* bpo-33562: Check the global asyncio event loop policy isn't set after any ↵Brett Cannon2018-06-021-0/+4
| | | | tests (GH-7328)
* bpo-32691: Use mod_spec.parent when running modules with pdb (GH-5474)Mario Corchero2018-02-031-1/+32
| | | | Previously the module name was used, which broke relative imports when pdb was run against a plain module or submodule.
* Add a test for pdb until command in coroutine (#5427)Andrew Svetlov2018-01-291-0/+46
|
* bpo-32650: Add an asyncgen pdb test (#5406)Yury Selivanov2018-01-291-0/+60
|
* bpo-32650 Add support for async generators and more test for coroutines in ↵Pablo Galindo2018-01-291-1/+42
| | | | pdb (#5403)
* bpo-32650: Add native coroutine support to bdb when stepping over line (GH-5400)Pablo Galindo2018-01-291-0/+55
|
* bpo-32206: Update pdb usage to include new module option (GH-5111)Mario Corchero2018-01-281-1/+4
|
* bpo-32206: Pdb can now run modules (GH-4752)Mario Corchero2018-01-061-17/+144
| | | | | | | | | | | Add a new argument "-m" to the pdb module to allow users to run `python -m pdb -m my_module_name`. This relies on private APIs in the runpy module to work, but we can get away with that since they're both part of the standard library and can be updated together if the runpy internals get refactored.
* bpo-31389 Add an optional `header` argument to pdb.set_trace() (#3438)Barry Warsaw2017-09-221-0/+12
| | | | | | | | | | * Give pdb.set_trace() an optional `header` argument * What's new. * Give pdb.set_trace() an optional `header` argument * What's new.
* bpo-31370: Remove support for threads-less builds (#3385)Antoine Pitrou2017-09-071-3/+0
| | | | | | * Remove Setup.config * Always define WITH_THREAD for compatibility.
* Issue #20766: Merge with 3.5.Xavier de Gaye2016-10-121-0/+23
|\
| * Issue #20766: Fix references leaked by pdb in the handling of SIGINT handlers.Xavier de Gaye2016-10-121-0/+23
| |
* | Issue #28338: Restore test_pdb doctests.Xavier de Gaye2016-10-021-1/+1
| |
* | Issue #18401: Fix test_pdb on WindowsVictor Stinner2016-09-101-14/+7
| | | | | | | | | | | | * Use "with Popen" to cleanup properly the process * Use support.temp_cwd() to properly change the working directory * Use environ.pop() to cleanup the code
* | Issue #18401: Fix test_pdb if $HOME is not setVictor Stinner2016-09-101-6/+10
| | | | | | | | | | | | HOME is not set on Windows for example. Use also textwrap.dedent() for the script.
* | Issue #18401: pdb tests don't read ~/.pdbrc anymoreŁukasz Langa2016-09-101-19/+55
| | | | | | | | Patch by Martin Matusiak and Sam Kimbrel.
* | Issue #27076: Merge spelling from 3.5Martin Panter2016-05-261-1/+1
|\ \ | |/
| * Issue #27076: Doc, comment and tests spelling fixesMartin Panter2016-05-261-1/+1
| | | | | | | | Most fixes to Doc/ and Lib/ directories by Ville Skyttä.
* | Issue #23277: Remove unused imports in tests.Serhiy Storchaka2016-04-241-1/+0
|/
* Issue #16180: Exit pdb if file has syntax error, instead of trapping userTerry Jan Reedy2015-09-051-0/+12
| | | | in an infinite loop. Patch by Xavier de Gaye.
* Issue #23821: Fixed test_pdb failure under -O.Serhiy Storchaka2015-04-011-11/+15
|
* Issue #22390: Remove files created by testsVictor Stinner2014-10-051-0/+1
|
* Issue #20746: Fix test_pdb to run in refleak mode (-R). Patch by Xavier de ↵Antoine Pitrou2014-08-121-0/+2
| | | | Gaye.
* Better behavior when stepping over yield[from]. Fixes issue 16596. By Xavier ↵Guido van Rossum2013-11-211-0/+305
| | | | de Gaye.
* pdb: modernize find_function() and add tests for it.Georg Brandl2013-10-131-0/+30
| | | | Closes #18714.
* 18764: remove the problematic 'print' alias for the PDB 'p' command.R David Murray2013-10-101-3/+6
| | | | | | So that it no longer shadows the print function. Patch by Connor Osborn, doc and test changes by R. David Murray.
* Issue #17177: Stop using imp in a bunch of testsBrett Cannon2013-06-151-2/+2
|
* Issue #17463: Fix test discovery for test_pdb.pyAndrew Svetlov2013-03-181-4/+5
|
* Merge: skip pdb test for #13120 if threading is not available.Andrew Svetlov2012-12-051-0/+3
|\
| * Skip pdb test for #13120 if threading is not available.Andrew Svetlov2012-12-051-0/+3
| |
* | Merge issue #13120: Allow to call pdb.set_trace() from thread.Andrew Svetlov2012-12-041-0/+27
|\ \ | |/ | | | | Patch by Ilya Sandler.
| * Issue #13120: Allow to call pdb.set_trace() from thread.Andrew Svetlov2012-12-041-0/+27
| | | | | | | | Patch by Ilya Sandler.
| * #13183: backport fixes to test_pdb to 3.2 branchGeorg Brandl2012-05-061-2/+5
| |
* | Issue #13183: Revert 0b53b70a40a0 (reenable test on windows)Martin v. Löwis2012-05-021-2/+1
| |
* | fix closes issue13183 - windows test failureSenthil Kumaran2012-05-021-1/+1
|\ \ | |/
| * fix windows test failure - issue13183Senthil Kumaran2012-05-021-1/+1
| |
* | Disable test_13183 temporarily on Windows for 3.3a3 release.v3.3.0a3Georg Brandl2012-05-011-1/+2
| |
* | test_pdb: fix failure of test_issue13183 in debug mode, and make sure files ↵Georg Brandl2012-05-011-2/+5
| | | | | | | | are cleaned up.
* | issue13183 - Fix pdb skipping frames after hitting a breakpoint and running ↵Senthil Kumaran2012-05-011-0/+51
|\ \ | |/ | | | | step. Patch by Xavier de Gaye