Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [3.12] gh-106922: Fix error location for constructs with spaces and ↵ | Miss Islington (bot) | 2023-09-08 | 1 | -0/+36 |
| | | | | | | parentheses (GH-108959) (#109147) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com> | ||||
* | [3.12] gh-108416: Mark slow test methods with @requires_resource('cpu') ↵ | Miss Islington (bot) | 2023-09-02 | 1 | -0/+1 |
| | | | | | | | | | | | | (GH-108421) (#108798) gh-108416: Mark slow test methods with @requires_resource('cpu') (GH-108421) Only mark tests which spend significant system or user time, by itself or in subprocesses. (cherry picked from commit f3ba0a74cd50274acdcd592d4ce8395b92492b7c) Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> | ||||
* | [3.12] gh-106185: Deduplicate `CPythonTracebackErrorCaretTests` in ↵ | Miss Islington (bot) | 2023-07-25 | 1 | -1/+1 |
| | | | | | | | `test_traceback` (GH-106187) (GH-107268) (cherry picked from commit 7c89f1189229c5c67a3766e24ecf00cde658b7fd) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> | ||||
* | gh-103895: Improve how invalid `Exception.__notes__` are displayed (#103897) | Carey Metcalfe | 2023-05-01 | 1 | -2/+10 |
| | |||||
* | GH-103805: Lib test f541 linting issue fix (#103812) | Rodolfo M. Pereira | 2023-04-24 | 1 | -57/+57 |
| | | | | | | | | | | | | | | | | This PR makes some minor linting adjustments to the Lib/test module caught by [ruff](https://github.com/charliermarsh/ruff). The adjustments are all related to the `F541 f-string without any placeholders` issue. Issue: https://github.com/python/cpython/issues/103805 <!-- gh-issue-number: gh-103805 --> * Issue: gh-103805 <!-- /gh-issue-number --> --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> Co-authored-by: Gregory P. Smith <greg@krypto.org> | ||||
* | gh-102799: use sys.exception() instead of sys.exc_info() in tests (#103293) | Irit Katriel | 2023-04-06 | 1 | -8/+7 |
| | |||||
* | gh-102755: PyErr_DisplayException only in ABI >= 3.12. Tests cover ↵ | Irit Katriel | 2023-03-21 | 1 | -1/+15 |
| | | | | PyErr_Display as well (GH-102849) | ||||
* | gh-102799: remove unnecessary calls to sys.exc_info() in tests (#102800) | Irit Katriel | 2023-03-18 | 1 | -109/+109 |
| | |||||
* | Fix typo in code comment (#102726) | Martin Breuss | 2023-03-15 | 1 | -1/+1 |
| | |||||
* | gh-102515: Remove unused imports in the `Lib/` directory (#102516) | Alex Waygood | 2023-03-08 | 1 | -1/+0 |
| | |||||
* | gh-99894: Ensure the local names don't collide with the test file in ↵ | Pablo Galindo Salgado | 2022-12-01 | 1 | -6/+6 |
| | | | | | traceback suggestion error checking (#99895) Co-authored-by: Victor Stinner <vstinner@python.org> | ||||
* | gh-99103: Normalize specialized traceback anchors against the current line ↵ | Batuhan Taskaya | 2022-11-12 | 1 | -1/+35 |
| | | | | | (GH-99145) Automerge-Triggered-By: GH:isidentical | ||||
* | gh-99139: Improve NameError error suggestion for instances (#99140) | Pablo Galindo Salgado | 2022-11-06 | 1 | -0/+25 |
| | |||||
* | gh-98878: Use builtins from the bound frame when offering a suggestion (#98880) | Batuhan Taskaya | 2022-10-31 | 1 | -0/+9 |
| | |||||
* | gh-98744: Prevent column-level decoding crashes on traceback module (#98824) | Batuhan Taskaya | 2022-10-29 | 1 | -0/+50 |
| | |||||
* | gh-91058: Add error suggestions to 'import from' import errors (#98305) | Pablo Galindo Salgado | 2022-10-25 | 1 | -0/+122 |
| | |||||
* | gh-98254: Include stdlib module names in error messages for NameErrors (#98255) | Pablo Galindo Salgado | 2022-10-15 | 1 | -0/+15 |
| | |||||
* | gh-97008: Add a Python implementation of AttributeError and NameError ↵ | Łukasz Langa | 2022-10-04 | 1 | -19/+493 |
| | | | | | | | | | suggestions (#97022) Relevant tests moved from test_exceptions to test_traceback to be able to compare both implementations. Co-authored-by: Carl Friedrich Bolz-Tereick <cfbolz@gmx.de> | ||||
* | gh-95259: add test for traceback with angle-bracketed filename (GH-95260) | Irit Katriel | 2022-07-26 | 1 | -0/+15 |
| | |||||
* | gh-93883: Fix some tests involving traceback formatting (#94737) | John Belmonte | 2022-07-11 | 1 | -4/+0 |
| | | | | PR #93994 was merged without being rebased in a few weeks, and some new test code using the old scheme passed through automatic merge. | ||||
* | gh-87822: Make traceback module robust to exceptions from repr() of local ↵ | Simon-Martin Schröder | 2022-07-11 | 1 | -2/+6 |
| | | | | values (GH-94691) | ||||
* | gh-93883: elide traceback indicators when possible (#93994) | John Belmonte | 2022-07-11 | 1 | -96/+70 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * gh-93883: elide traceback indicators when possible Elide traceback column indicators when the entire line of the frame is implicated. This reduces traceback length and draws even more attention to the remaining (very relevant) indicators. Example: ``` Traceback (most recent call last): File "query.py", line 99, in <module> bar() File "query.py", line 66, in bar foo() File "query.py", line 37, in foo magic_arithmetic('foo') File "query.py", line 18, in magic_arithmetic return add_counts(x) / 25 ^^^^^^^^^^^^^ File "query.py", line 24, in add_counts return 25 + query_user(user1) + query_user(user2) ^^^^^^^^^^^^^^^^^ File "query.py", line 32, in query_user return 1 + query_count(db, response['a']['b']['c']['user'], retry=True) ~~~~~~~~~~~~~~~~~~^^^^^ TypeError: 'NoneType' object is not subscriptable ``` Rather than going out of our way to provide indicator coverage in every traceback test suite, the indicator test suite should be responible for sufficient coverage (e.g. by adding a basic exception group test to ensure that margin strings are covered). | ||||
* | GH-94694: Fix column offsets for multi-line method lookups (GH-94697) | Brandt Bucher | 2022-07-10 | 1 | -0/+51 |
| | |||||
* | GH-93249: relax overly strict assertion on bounds->ar_start (GH-93961) | Irit Katriel | 2022-06-20 | 1 | -1/+27 |
| | |||||
* | gh-84623: Remove unused imports in tests (#93772) | Victor Stinner | 2022-06-13 | 1 | -1/+0 |
| | |||||
* | GH-88116: Use a compact format to represent end line and column offsets. ↵ | Mark Shannon | 2022-04-21 | 1 | -0/+1 |
| | | | | | | | | | | | | (GH-91666) * Stores all location info in linetable to conform to PEP 626. * Remove column table from code objects. * Remove end-line table from code objects. * Document new location table format | ||||
* | gh-89770: Implement PEP-678 - Exception notes (GH-31317) | Irit Katriel | 2022-04-16 | 1 | -38/+155 |
| | |||||
* | bpo-46729: add number of sub-exceptions in str() of BaseExceptionGroup ↵ | Irit Katriel | 2022-02-22 | 1 | -28/+28 |
| | | | | (GH-31294) | ||||
* | bpo-46098: Add test for multiline syntax error traceback (GH-30695) | Russel Webber | 2022-01-27 | 1 | -7/+41 |
| | |||||
* | bpo-40280: Skip subprocess-based tests on wasm32-emscripten (GH-30615) | Christian Heimes | 2022-01-25 | 1 | -1/+3 |
| | |||||
* | bpo-46425: fix direct invocation of `test_traceback` (GH-30746) | Nikita Sobolev | 2022-01-22 | 1 | -2/+3 |
| | |||||
* | bpo-45615: Add missing test for printing traceback for non-exception. Fix ↵ | Irit Katriel | 2022-01-02 | 1 | -0/+16 |
| | | | | traceback.py (GH-30091) | ||||
* | bpo-37971: fix the position of decorator application (GH-30027) | Carl Friedrich Bolz-Tereick | 2021-12-10 | 1 | -0/+45 |
| | | | | | | | The line numbers of actually calling the decorator functions of functions and classes was wrong (as opposed to loading them, were they have been correct previously too). Co-authored-by: Łukasz Langa <lukasz@langa.pl> | ||||
* | bpo-45607: Make it possible to enrich exception displays via setting their ↵ | Irit Katriel | 2021-12-03 | 1 | -0/+69 |
| | | | | __note__ field (GH-29880) | ||||
* | bpo-45614: Fix traceback display for exceptions with invalid module name ↵ | Irit Katriel | 2021-11-27 | 1 | -0/+11 |
| | | | | (GH-29726) | ||||
* | bpo-45292: [PEP 654] Update traceback display code to work with exception ↵ | Irit Katriel | 2021-11-05 | 1 | -1/+514 |
| | | | | groups (GH-29207) | ||||
* | bpo-45249: Fix caret location when end_offset is set to 0 (GH-28855) | Pablo Galindo Salgado | 2021-10-16 | 1 | -0/+10 |
| | |||||
* | bpo-45249: Ensure the traceback module prints correctly syntax errors with ↵ | Pablo Galindo Salgado | 2021-09-27 | 1 | -0/+13 |
| | | | | ranges (GH-28575) | ||||
* | bpo-41031: Match C and Python code formatting of unprintable exceptions and ↵ | Irit Katriel | 2021-09-05 | 1 | -3/+29 |
| | | | | exceptions in the __main__ module. (GH-28139) | ||||
* | bpo-45075: distinguish between frame and FrameSummary in traceback mo… ↵ | Irit Katriel | 2021-09-03 | 1 | -5/+5 |
| | | | | (GH-28112) | ||||
* | bpo-45083: Include the exception class qualname when formatting an exception ↵ | Irit Katriel | 2021-09-03 | 1 | -0/+13 |
| | | | | | (GH-28119) Co-authored-by: Erlend Egeberg Aasland <erlend.aasland@innova.no> | ||||
* | bpo-31299: make it possible to filter out frames from tracebacks (GH-28067) | Irit Katriel | 2021-08-31 | 1 | -0/+28 |
| | |||||
* | bpo-43950: support some multi-line expressions for PEP 657 (GH-27339) | Batuhan Taskaya | 2021-07-25 | 1 | -0/+24 |
| | | | | | | | | | | | | | | | | | | | | | This is basically something that I noticed up while fixing test runs for another issue. It is really common to have multiline calls, and when they fail the display is kind of weird since we omit the annotations. E.g; ``` $ ./python t.py Traceback (most recent call last): File "/home/isidentical/cpython/cpython/t.py", line 11, in <module> frame_1() ^^^^^^^^^ File "/home/isidentical/cpython/cpython/t.py", line 5, in frame_1 frame_2( File "/home/isidentical/cpython/cpython/t.py", line 2, in frame_2 return a / 0 / b / c ~~^~~ ZeroDivisionError: division by zero ``` This patch basically adds support for annotating the rest of the line, if the instruction covers multiple lines (start_line != end_line). Automerge-Triggered-By: GH:isidentical | ||||
* | bpo-43950: support long lines in traceback.py (GH-27336) | Batuhan Taskaya | 2021-07-24 | 1 | -0/+22 |
| | |||||
* | bpo-43950: ensure source_line is present when specialising the traceback ↵ | Batuhan Taskaya | 2021-07-24 | 1 | -0/+25 |
| | | | | (GH-27313) | ||||
* | bpo-44569: Decouple frame formatting in traceback.py (GH-27038) | Ammar Askar | 2021-07-16 | 1 | -0/+15 |
| | |||||
* | bpo-43950: make BinOp specializations more reliable (GH-27126) | Batuhan Taskaya | 2021-07-15 | 1 | -0/+38 |
| | |||||
* | bpo-43950: Specialize tracebacks for subscripts/binary ops (GH-27037) | Batuhan Taskaya | 2021-07-12 | 1 | -2/+80 |
| | | | | Co-authored-by: Ammar Askar <ammar@ammaraskar.com> Co-authored-by: Pablo Galindo <pablogsal@gmail.com> | ||||
* | bpo-44446: support lineno being None in traceback.FrameSummary (GH-26781) | Filipe Laíns | 2021-07-08 | 1 | -0/+4 |
| | | | | | | As of 088a15c49d99ecb4c3bef93f8f40dd513c6cae3b, lineno is None instead of -1 if there is no line number. Signed-off-by: Filipe Laíns <lains@riseup.net> | ||||
* | Remove __cleanenv from PEP-657 tests (GH-27060) | Ammar Askar | 2021-07-07 | 1 | -2/+2 |
| |