summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pdb.py
Commit message (Collapse)AuthorAgeFilesLines
* 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 keyword only arguments (GH-13452)Miss Islington (bot)2019-05-201-4/+21
| | | | | (cherry picked from commit bf457c7d8224179a023957876e757f2a7ffc3d9d) Co-authored-by: Rémi Lapeyre <remi.lapeyre@henki.fr>
* bpo-13120: fix typo with test_issue13120() method name (GH-12250)Miss Islington (bot)2019-04-021-3/+3
| | | | | | | | Incorrect issue number '13210' added in 539ee5da6f. https://bugs.python.org/issue13120 (cherry picked from commit 9139f926a8d8e5b71830cb7e10b0807836b5e9a4) Co-authored-by: Daniel Hahler <github@thequod.de>
* [3.7] bpo-35931: Gracefully handle any exception in pdb debug command ↵Miss Islington (bot)2019-03-121-4/+18
| | | | | | | | | | | | | (GH-12103) (GH-12285) This is relevant for `debug doesnotexist()`, which would crash with a NameError otherwise. (cherry picked from commit 3e936431e23b424b1e4665e8165c245924f0ab02) Co-authored-by: Daniel Hahler <github@thequod.de> https://bugs.python.org/issue35931
* bpo-35931: Gracefully handle SyntaxError in pdb debug command (GH-11782)Miss Islington (bot)2019-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 (cherry picked from commit 4327705cfab3eb09073ec828570bbd8f789e1611) Co-authored-by: Daniel Hahler <github@thequod.de>
* [3.7] bpo-32691: Use mod_spec.parent when running modules with pdb (GH-5510)Miss Islington (bot)2018-02-041-1/+32
| | | | | | 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>
* 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
| * issue13183 - Fix pdb skipping frames after hitting a breakpoint and running ↵Senthil Kumaran2012-05-011-0/+51
| | | | | | | | step. Patch by Xavier de Gaye
* | Issue #10990: Prevent tests from clobbering a set trace function.Brett Cannon2011-02-211-0/+3
|/ | | | | | | | | | | Many tests simply didn't care if they unset a pre-existing trace function. This made test coverage impossible. This patch fixes various tests to put back any pre-existing trace function. It also introduces test.support.no_tracing as a decorator which will temporarily unset the trace function for tests which simply fail otherwise. Thanks to Kristian Vlaardingerbroek for helping to find the cause of various trace function unsets.
* Fix test suite to not activate new sigint behavior in pdb.Georg Brandl2010-12-041-11/+12
|
* Fix #10561 - Fix pdb behavior. Delete the breakpoints by breakpoint number.Senthil Kumaran2010-11-291-2/+16
| | | | | Handle multiple breakpoints at same line. Update docs/test. Patch by Xavier de Gaye.
* Fix ResourceWarning from subprocess pipe.Brian Curtin2010-11-051-0/+1
|
* Import test_pdb with its full name, so that running python -m test.test_pdb ↵Georg Brandl2010-07-311-8/+8
| | | | succeeds.
* Fix pdb test failures on the buildbots.Georg Brandl2010-07-311-3/+3
|