summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_pdb.py
Commit message (Collapse)AuthorAgeFilesLines
* [3.12] gh-58933: Make pdb return to caller frame correctly when f_trace is ↵Tian Gao2024-05-131-0/+52
| | | | | | | | | | not set (GH-118979) (#119008) * [3.12] gh-58933: Make pdb return to caller frame correctly when f_trace is not set (GH-118979) (cherry picked from commit f526314194f7fd15931025f8a4439c1765666e42) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
* [3.12] gh-90095: Ignore empty lines and comments in `.pdbrc` (GH-116834) ↵Miss Islington (bot)2024-03-151-0/+19
| | | | | | | | (#116854) gh-90095: Ignore empty lines and comments in `.pdbrc` (GH-116834) (cherry picked from commit a50cf6c3d76b34e2ee9f92a248f1b0df24e407f6) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
* [3.12] gh-90095: Make .pdbrc work properly and add some reasonable te… ↵Tian Gao2024-03-121-62/+88
| | | | | | (#116661) [3.12] gh-90095: Make .pdbrc work properly and add some reasonable tests (GH-110496) (cherry picked from commit 44f9a84b67c97c94f0d581ffd63b24b73fb79610)
* [3.12] gh-87115: Set `__main__.__spec__` to `None` in pdb (GH-116141) (#116154)Tian Gao2024-02-291-0/+12
| | | | | | | | | | * gh-87115: Set `__main__.__spec__` to `None` in pdb (#116141) (cherry picked from commit ccfc042bbf31e53c44b8aae444afd8365b798422) * [3.12] gh-87115: Set `__main__.__spec__` to `None` in pdb (GH-116141) (cherry picked from commit ccfc042bbf31e53c44b8aae444afd8365b798422) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
* [3.12] gh-114275: Skip doctests that use `asyncio` in `test_pdb` for WASI ↵Miss Islington (bot)2024-01-221-202/+208
| | | | | | | | builds (GH-114309) (#114439) gh-114275: Skip doctests that use `asyncio` in `test_pdb` for WASI builds (GH-114309) (cherry picked from commit efb81a60f5ce7e192095230a0f7ff9684d6f835a) Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.12] gh-108303: Move all doctest related files and tests to ↵Miss Islington (bot)2024-01-181-4/+2
| | | | | | | | | `Lib/test/test_doctest/` (GH-112109) (#114254) gh-108303: Move all doctest related files and tests to `Lib/test/test_doctest/` (GH-112109) (cherry picked from commit 9c93350f582fe6f5fed2cd873869dfe4fbf2dfe8) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> Co-authored-by: Brett Cannon <brett@python.org>
* [3.12] gh-112343: pdb: Use tokenize to replace convenience variables ↵Tian Gao2024-01-171-1/+10
| | | | (GH-112380) (#114202)
* [3.12] gh-110944: Move pty helper to test.support and add basic pdb ↵Miss Islington (bot)2023-11-141-0/+30
| | | | | | | | completion test (GH-111826) (GH-112024) gh-110944: Move pty helper to test.support and add basic pdb completion test (GH-111826) (cherry picked from commit 1c7ed7e9ebc53290c831d7b610219fa737153a1b) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
* [3.12] gh-108791: Fix pdb CLI invalid argument handling (GH-108816) (#111064)Radislav Chugunov2023-10-191-2/+17
| | | | | | | * [3.12] gh-108791: Fix `pdb` CLI invalid argument handling (GH-108816) (cherry picked from commit 162213f2db3835e1115178d38741544f4b4db416) Co-authored-by: Radislav Chugunov <52372310+chgnrdv@users.noreply.github.com>
* [3.12] gh-65052: Prevent pdb from crashing when trying to display objects ↵Miss Islington (bot)2023-10-111-0/+47
| | | | | | | | (GH-110578) (#110734) gh-65052: Prevent pdb from crashing when trying to display objects (GH-110578) (cherry picked from commit c523ce0f434582580a3721e15cb7dd6b56ad0236) Co-authored-by: Tian Gao <gaogaotiantian@hotmail.com>
* [3.12] gh-109375: Fix bug where pdb registers an alias without an associated ↵Miss Islington (bot)2023-10-021-0/+6
| | | | | | | | command (GH-109376) (#109429) gh-109375: Fix bug where pdb registers an alias without an associated command (GH-109376) (cherry picked from commit 68a6f21f47e779ddd70e33cf04d170a63f077fcd) Co-authored-by: buermarc <44375277+buermarc@users.noreply.github.com>
* [3.12] GH-108976. Keep monitoring data structures valid during ↵Mark Shannon2023-09-121-0/+18
| | | | | de-optimization during callback. (GH-109131) (#109268) GH-108976. Keep monitoring data structures valid during de-optimization during callback. (GH-109131)
* GH-103082: Filter LINE events in VM, to simplify tool implementation. ↵Mark Shannon2023-05-121-2/+3
| | | | | | | | (GH-104387) When monitoring LINE events, instrument all instructions that can have a predecessor on a different line. Then check that the a new line has been hit in the instrumentation code. This brings the behavior closer to that of 3.11, simplifying implementation and porting of tools.
* gh-104301: Allow leading whitespace in disambiguated pdb statements (#104342)James Gerity2023-05-111-0/+23
|
* gh-103693: Add convenience variable feature to `pdb` (#103694)Tian Gao2023-05-031-0/+78
|
* gh-103578: Fix pdb reading code with non-utf8 encoding (#103581)Tian Gao2023-04-261-0/+6
| | | `pdb` should use `io.open_code` to open code to avoid encoding issue.
* gh-101517: fix line number propagation in code generated for except* (#103550)Irit Katriel2023-04-241-2/+2
|
* gh-101517: Add regression test for a lineno bug in try/except* impacting pdb ↵Tian Gao2023-04-141-0/+20
| | | | (#103547)
* gh-103225: Fixed zero lineno issue for pdb (#103265)Tian Gao2023-04-071-0/+25
| | | | | Co-authored-by: Artem Mukhin <ortem00@gmail.com>
* gh-103068: Check condition expression of breakpoints for pdb (#103069)gaogaotiantian2023-03-291-1/+17
| | | | Co-authored-by: Łukasz Langa <lukasz@langa.pl> Co-authored-by: Artem Mukhin <ortem00@gmail.com>
* gh-103023: Add SyntaxError check in pdb's `display` command (#103024)gaogaotiantian2023-03-271-0/+6
| | | Co-authored-by: Łukasz Langa <lukasz@langa.pl>
* gh-102980: Add tests for pdf's display, alias and where commands (#102981)gaogaotiantian2023-03-241-0/+150
|
* GH-101673: Fix pdb bug where local variable changes are lost after longlist ↵gaogaotiantian2023-03-121-0/+29
| | | | (#101674)
* gh-93696: Locate frozen module source with __file__ (#93697)James Gerity2022-10-251-0/+46
| | | Co-authored-by: Kumar Aditya <59607654+kumaraditya303@users.noreply.github.com>
* gh-94215: Fix error handling for line-tracing events (GH-94681)Brandt Bucher2022-07-081-1/+0
| | | | | * Re-enable crasher * Fix error handling for line-tracing events * blurb add
* gh-94215: Add reproducer for segfault in frame_setlineno() (GH-94563)Christian Heimes2022-07-071-6/+104
|
* GH-91742: Fix pdb crash after jump (GH-94171)Kumar Aditya2022-06-231-0/+43
|
* gh-57684: Update tests for PYTHONSAFEPATH=1 (#92358)Victor Stinner2022-05-061-0/+2
| | | | | Fix tests failing with the PYTHONSAFEPATH=1 env var. Enhance also -P help in Python usage (python --help).
* bpo-40280: Skip socket, fork, subprocess tests on Emscripten (GH-31986)Christian Heimes2022-03-221-0/+2
| | | | | | | | | | | - Add requires_fork and requires_subprocess to more tests - Skip extension import tests if dlopen is not available - Don't assume that _testcapi is a shared extension - Skip a lot of socket tests that don't work on Emscripten - Skip mmap tests, mmap emulation is incomplete - venv does not work yet - Cannot get libc from executable The "entire" test suite is now passing on Emscripten with EMSDK from git head (91 suites are skipped).
* bpo-46434: Handle missing docstrings in pdb help (GH-30705)Tom Sparrow2022-01-211-0/+21
|
* bpo-45208: Make test_pdb.test_checkline_is_not_executable() quiet (GH-28354)Victor Stinner2021-09-151-13/+14
| | | | | | test_pdb.test_checkline_is_not_executable() no longer writes output to stdout. Remove also unused variables 'f'.
* bpo-5846: Do not use obsolete unittest functions. (GH-28303)Serhiy Storchaka2021-09-131-7/+3
| | | | Get rid of use of makeSuite() and findTestCases(). Also make test_math and test_threading_local discoverable.
* bpo-44682: Handle invalid arg to pdb's "commands" directive (#27252)andrei kulakov2021-07-281-0/+11
|
* bpo-44461: Check early that a pdb target is valid for execution. (#27227)Jason R. Coombs2021-07-281-0/+14
| | | | | | | | | | | | | | | * 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>
* bpo-44554: refactor pdb targets (and internal tweaks) (GH-26992)Jason R. Coombs2021-07-191-1/+1
| | | | | | | | - Refactor module/script handling to share an interface (check method). - Import functools and adjust tests for the new line number for find_function. - Use cached_property for details. - Add blurb. Automerge-Triggered-By: GH:jaraco
* bpo-41137: Use utf-8 encoding while reading .pdbrc files (GH-21263)Srinivas Reddy Thatiparthy (శ్రీనివాస్ రెడ్డి తాటిపర్తి)2021-07-081-0/+34
|
* bpo-34266: [pdb] handle ValueError from shlex.split() (GH-26656)Irit Katriel2021-07-031-0/+15
|
* bpo-43318: Fix a bug where pdb does not always echo cleared breakpoints ↵huzhaojie2021-06-111-0/+29
| | | | (GH-24646)
* bpo-37022: Fix bug where pdb's do_p/do_pp commands swallow exceptions from ↵Daniel Hahler2021-06-101-0/+28
| | | | repr (GH-18180)
* bpo-44348: Move trace-info to thread-state (GH-26623)Mark Shannon2021-06-101-2/+2
| | | | | * Move trace-info to thread state. * Correct output for pdb when turning on tracing in middle of line
* bpo-28528: Fix pdb.checkline() attribute error when 'curframe' is None. (#25438)Erlend Egeberg Aasland2021-05-111-0/+38
| | | | Co-authored-by: Thomas Kluyver <takowl@gmail.com>
* bpo-43960: test_pdb resets breakpoints (GH-25673)Irit Katriel2021-04-281-0/+1
| | | | Reset global breakpoint state at the beginning of test_pdb_next_command_in_generator_for_loop() to make it deterministic.
* bpo-24160: Fix test_pdb refleaks failure (GH-25182)Irit Katriel2021-04-041-3/+3
|
* bpo-24160: Fix breakpoints persistence across multiple pdb sessions (GH-21989)Irit Katriel2021-04-021-7/+73
|
* bpo-26053: Fix test_pdb.test_issue26053() (GH-25139)Irit Katriel2021-04-011-3/+3
|
* bpo-26053: Fix args echoed by pdb run command (#22033)Irit Katriel2021-04-011-0/+13
|
* bpo-42383: pdb: do not fail to restart the target if the current directory ↵Andrey Bienkowski2021-01-251-0/+23
| | | | | changed (#23412) This commit only adds tests and a news entry. The actual bug was fixed in the earlier commit.
* bpo-42384: pdb: correctly populate sys.path[0] (GH-23338)Andrey Bienkowski2021-01-221-0/+42
| | | Automerge-Triggered-By: GH:gvanrossum
* bpo-42864: Improve error messages regarding unclosed parentheses (GH-24161)Pablo Galindo2021-01-191-2/+2
|
* bpo-42246: Partial implementation of PEP 626. (GH-23113)Mark Shannon2020-11-121-1/+2
| | | * Implement new line number table format, as defined in PEP 626.