Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | [3.13] gh-120544: Add `else: fail()` to tests where exception is expected ↵ | Miss Islington (bot) | 2024-06-15 | 1 | -0/+2 |
| | | | | | | | | (GH-120545) (#120546) gh-120544: Add `else: fail()` to tests where exception is expected (GH-120545) (cherry picked from commit 42ebdd83bb194f054fe5a10b3caa0c3a95be3679) Co-authored-by: Nikita Sobolev <mail@sobolevn.me> | ||||
* | gh-112730: Make the test suite resilient to color-activation environment ↵ | Pablo Galindo Salgado | 2024-04-24 | 1 | -1/+6 |
| | | | | variables (#117672) | ||||
* | gh-117606: Truncate extremely long error message in `test_exceptions` (#117670) | Nice Zombies | 2024-04-11 | 1 | -1/+2 |
| | | | Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com> | ||||
* | gh-116303: Skip tests if C recursion limit is unavailable (GH-117368) | Erlend E. Aasland | 2024-04-08 | 1 | -1/+1 |
| | | | | | The test suite fetches the C recursion limit from the _testcapi extension module. Test extension modules can be disabled using the --disable-test-modules configure option. | ||||
* | gh-116303: Skip test module dependent tests if test modules are unavailable ↵ | Erlend E. Aasland | 2024-04-03 | 1 | -5/+13 |
| | | | | (#117341) | ||||
* | gh-115823: Calculate correctly error locations when dealing with implicit ↵ | Pablo Galindo Salgado | 2024-02-26 | 1 | -0/+1 |
| | | | | encodings (#115824) | ||||
* | gh-107944: Improve error message for getargs with bad keyword arguments ↵ | Shantanu | 2024-02-08 | 1 | -1/+1 |
| | | | | (#114792) | ||||
* | gh-106922: Support multi-line error locations in traceback (attempt 2) (#112097) | William Wen | 2023-12-01 | 1 | -1/+2 |
| | |||||
* | gh-111654: remove redundant decref in LOAD_FROM_DICT_OR_DEREF (#111655) | AN Long | 2023-11-03 | 1 | -0/+7 |
| | |||||
* | gh-109894: Fix initialization of static `MemoryError` in subinterpreter ↵ | Radislav Chugunov | 2023-10-23 | 1 | -0/+14 |
| | | | | | | | | | | | | (gh-110911) Fixes #109894 * set `interp.static_objects.last_resort_memory_error.args` to empty tuple to avoid crash on `PyErr_Display()` call * allow `_PyExc_InitGlobalObjects()` to be called on subinterpreter init --------- Co-authored-by: blurb-it[bot] <43283697+blurb-it[bot]@users.noreply.github.com> | ||||
* | gh-107450: Check for overflow in the tokenizer and fix overflow test (#110832) | Lysandros Nikolaou | 2023-10-16 | 1 | -4/+12 |
| | | | | Co-authored-by: Filipe Laíns <lains@riseup.net> Co-authored-by: Serhiy Storchaka <storchaka@gmail.com> | ||||
* | gh-107450: Fix testMemoryErrorBigSource using the bigmemtest decorator ↵ | Lysandros Nikolaou | 2023-10-13 | 1 | -1/+1 |
| | | | | (GH-110810) | ||||
* | gh-107450: Fix parser column offset overflow test on Windows (#110768) | Lysandros Nikolaou | 2023-10-13 | 1 | -1/+3 |
| | | | Co-authored-by: Nikita Sobolev <mail@sobolevn.me> | ||||
* | gh-107450: Raise OverflowError when parser column offset overflows (#110754) | Lysandros Nikolaou | 2023-10-12 | 1 | -0/+4 |
| | |||||
* | gh-104169: Fix test_peg_generator after tokenizer refactoring (#110727) | Lysandros Nikolaou | 2023-10-12 | 1 | -1/+1 |
| | | | | * Fix test_peg_generator after tokenizer refactoring * Remove references to tokenizer.c in comments etc. | ||||
* | gh-108416: Mark slow test methods with @requires_resource('cpu') (GH-108421) | Serhiy Storchaka | 2023-09-02 | 1 | -0/+1 |
| | | | | Only mark tests which spend significant system or user time, by itself or in subprocesses. | ||||
* | gh-108634: Py_TRACE_REFS uses a hash table (#108663) | Victor Stinner | 2023-08-31 | 1 | -0/+6 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Python built with "configure --with-trace-refs" (tracing references) is now ABI compatible with Python release build and debug build. Moreover, it now also supports the Limited API. Change Py_TRACE_REFS build: * Remove _PyObject_EXTRA_INIT macro. * The PyObject structure no longer has two extra members (_ob_prev and _ob_next). * Use a hash table (_Py_hashtable_t) to trace references (all objects): PyInterpreterState.object_state.refchain. * Py_TRACE_REFS build is now ABI compatible with release build and debug build. * Limited C API extensions can now be built with Py_TRACE_REFS: xxlimited, xxlimited_35, _testclinic_limited. * No longer rename PyModule_Create2() and PyModule_FromDefAndSpec2() functions to PyModule_Create2TraceRefs() and PyModule_FromDefAndSpec2TraceRefs(). * _Py_PrintReferenceAddresses() is now called before finalize_interp_delete() which deletes the refchain hash table. * test_tracemalloc find_trace() now also filters by size to ignore the memory allocated by _PyRefchain_Trace(). Test changes for Py_TRACE_REFS: * Add test.support.Py_TRACE_REFS constant. * Add test_sys.test_getobjects() to test sys.getobjects() function. * test_exceptions skips test_recursion_normalizing_with_no_memory() and test_memory_error_in_PyErr_PrintEx() if Python is built with Py_TRACE_REFS. * test_repl skips test_no_memory(). * test_capi skisp test_set_nomemory(). | ||||
* | gh-105724: Add location information to `assert` errors (GH-105935) | Nikita Sobolev | 2023-08-16 | 1 | -0/+117 |
| | |||||
* | gh-103333: Pickle the keyword attributes of AttributeError (#103352) | Charles Machalow | 2023-05-12 | 1 | -27/+34 |
| | | | | | | * Pickle the `name` and `args` attributes of AttributeError when present. Co-authored-by: Gregory P. Smith <greg@krypto.org> Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com> | ||||
* | gh-102856: Initial implementation of PEP 701 (#102855) | Pablo Galindo Salgado | 2023-04-19 | 1 | -1/+2 |
| | | | | | | Co-authored-by: Lysandros Nikolaou <lisandrosnik@gmail.com> Co-authored-by: Batuhan Taskaya <isidentical@gmail.com> Co-authored-by: Marta Gómez Macías <mgmacias@google.com> Co-authored-by: sunmy2019 <59365878+sunmy2019@users.noreply.github.com> | ||||
* | gh-102799: use sys.exception() instead of sys.exc_info() in tests (#103293) | Irit Katriel | 2023-04-06 | 1 | -34/+32 |
| | |||||
* | gh-89058: remove skip from test_no_hang_on_context_chain_cycle2 (#102903) | Irit Katriel | 2023-04-05 | 1 | -1/+0 |
| | |||||
* | gh-102799: remove unnecessary calls to sys.exc_info() in tests (#102800) | Irit Katriel | 2023-03-18 | 1 | -9/+9 |
| | |||||
* | GH-101578: Normalize the current exception (GH-101607) | Mark Shannon | 2023-02-08 | 1 | -4/+4 |
| | | | | | | | | | | * Make sure that the current exception is always normalized. * Remove redundant type and traceback fields for the current exception. * Add new API functions: PyErr_GetRaisedException, PyErr_SetRaisedException * Add new API functions: PyException_GetArgs, PyException_SetArgs | ||||
* | gh-99482: remove `jython` compatibility parts from stdlib and tests (#99484) | Nikita Sobolev | 2022-12-23 | 1 | -4/+3 |
| | |||||
* | GH-91079: Decouple C stack overflow checks from Python recursion checks. ↵ | Mark Shannon | 2022-10-05 | 1 | -6/+2 |
| | | | | (GH-96510) | ||||
* | gh-97008: Add a Python implementation of AttributeError and NameError ↵ | Łukasz Langa | 2022-10-04 | 1 | -500/+3 |
| | | | | | | | | | 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-96352: Set AttributeError context in _PyObject_GenericGetAttrWithDict ↵ | philg314 | 2022-09-08 | 1 | -0/+5 |
| | | | | (#96353) | ||||
* | Increase test coverage of Objects/exceptions.c (GH-94674) | Irit Katriel | 2022-07-08 | 1 | -5/+47 |
| | |||||
* | 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 | -1/+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 | -13/+19 |
| | |||||
* | bpo-47212: Improve error messages for un-parenthesized generator expressions ↵ | Matthieu Dartiailh | 2022-04-05 | 1 | -1/+10 |
| | | | | (GH-32302) | ||||
* | bpo-46940: Don't override existing AttributeError suggestion information ↵ | Pablo Galindo Salgado | 2022-03-07 | 1 | -0/+18 |
| | | | | | | | | | | | | (GH-31710) When an exception is created in a nested call to PyObject_GetAttr, any external calls will override the context information of the AttributeError that we have already placed in the most internal call. This will cause the suggestions we create to nor work properly as the attribute name and object that we will be using are the incorrect ones. To avoid this, we need to check first if these attributes are already set and bail out if that's the case. | ||||
* | Allow the parser to avoid nested processing of invalid rules (GH-31252) | Pablo Galindo Salgado | 2022-02-10 | 1 | -1/+1 |
| | |||||
* | bpo-46458: Add tests for context of exception in finally block (GH-30986) | Irit Katriel | 2022-01-28 | 1 | -0/+50 |
| | |||||
* | bpo-46442: improve and rename testExceptionCleanupNames (GH-30758) | Yellow Dusk | 2022-01-22 | 1 | -2/+14 |
| | | | | | The test tested that explicitly deleting the local variable bound to the exception did not cause problems, but it did not test what it actually claimed to test, i.e. that the variable is deleted automatically. | ||||
* | bpo-46339: Fix crash in the parser when computing error text for multi-line ↵ | Pablo Galindo Salgado | 2022-01-11 | 1 | -0/+6 |
| | | | | | f-strings (GH-30529) Automerge-Triggered-By: GH:pablogsal | ||||
* | bpo-46237: Fix the line number of tokenizer errors inside f-strings (GH-30463) | Pablo Galindo Salgado | 2022-01-08 | 1 | -0/+12 |
| | |||||
* | bpo-46240: Correct the error for unclosed parentheses when the tokenizer is ↵ | Pablo Galindo Salgado | 2022-01-04 | 1 | -1/+1 |
| | | | | not finished (GH-30378) | ||||
* | bpo-45292: [PEP-654] add except* (GH-29581) | Irit Katriel | 2021-12-14 | 1 | -0/+2 |
| | |||||
* | bpo-46054: Correct non-utf8 character tests in test_exceptions (GH-30074) | Pablo Galindo Salgado | 2021-12-12 | 1 | -2/+2 |
| | |||||
* | bpo-46054: Fix parsing error when parsing non-utf8 characters in source ↵ | Pablo Galindo Salgado | 2021-12-12 | 1 | -0/+12 |
| | | | | files (GH-30068) | ||||
* | bpo-46042: Improve SyntaxError locations in the symbol table (GH-30059) | Pablo Galindo Salgado | 2021-12-11 | 1 | -3/+4 |
| | |||||
* | bpo-46004: Fix error location for loops with invalid targets (GH-29959) | Pablo Galindo Salgado | 2021-12-07 | 1 | -0/+1 |
| | |||||
* | bpo-45607: Make it possible to enrich exception displays via setting their ↵ | Irit Katriel | 2021-12-03 | 1 | -0/+21 |
| | | | | __note__ field (GH-29880) | ||||
* | bpo-45786: Allocate space for frame in frame object. (GH-29729) | Mark Shannon | 2021-11-29 | 1 | -4/+2 |
| | |||||
* | bpo-45727: Only trigger the 'did you forgot a comma' error suggestion if ↵ | Pablo Galindo Salgado | 2021-11-24 | 1 | -2/+2 |
| | | | | inside parentheses (GH-29757) | ||||
* | bpo-45871: Refactor except matcher validation into a separate function so ↵ | Irit Katriel | 2021-11-22 | 1 | -0/+15 |
| | | | | that it can be reused. Add missing unit test. (GH-29711) | ||||
* | bpo-45848: Allow the parser to get error lines from encoded files (GH-29646) | Pablo Galindo Salgado | 2021-11-20 | 1 | -0/+13 |
| |