20 Commits

Author SHA1 Message Date
Shahar Naveh
cc829b2756 Update test_contextlib.py to 3.14.4 (#7815) 2026-05-12 00:40:32 +09:00
Jeong, YunWon
2ebd7026e4 Compiler parity: docstring dedent, StopIteration wrapper, constant folding (#7530) 2026-03-29 22:36:20 +09:00
Jeong, YunWon
6b870d62ad Fix traceback, syntax errors, and exception handling (#7015)
* Update codeop from v3.14.3

* Fix traceback, syntax errors, and exception handling

- Improve unclosed bracket detection with "'(' was never closed" message
- Fix IndentationError location to point to end of line
- Implement frame.clear() with proper checks for executing/suspended frames
- Fix exception context chaining for propagated exceptions
- Add traceback.__dir__() and prevent tb_next deletion
- Fix subscript operation source range restoration in compiler
- Change "duplicate parameter" to "duplicate argument" error message
- Refactor duplicate code in asyncgenerator.rs and frame.rs

---------

Co-authored-by: CPython Developers <>
2026-02-07 13:41:45 +09:00
Jeong, YunWon
eee360822c Rework compiler about exception handling (#6638)
* asyncgen

* fix coroutine

* rewrite compiler

* tests

* set pyc magic number
2026-01-04 09:15:38 +09:00
Jeong, YunWon
1b17587585 __slots__ xor __dict__ , name mangling (#6392)
* __slots__ xor __dict__

* mangle_name for `__` prefixed members
2025-12-10 23:30:10 +09:00
ShaharNaveh
61bc6e8d1c Unmark passing tests 2025-08-23 23:21:19 +03:00
Shahar Naveh
4841776856 Update contextlib from 3.13.5, (#6056)
* Update `contextlib` from 3.13.5

* Add `test_contextlib_async.py`
2025-08-01 22:39:00 +09:00
Jeong YunWon
e7fdfca5f5 Add python-implemented ExceptionGroup 2025-03-27 01:28:36 +09:00
Sacha Dupuydauby
76c699b4ba Update contextlib from CPython 3.12 2025-01-12 00:40:41 +09:00
matheusfgoncalves95
515f0bf9c2 Adding generator_stop to compile_future_features (#5320)
* Adding generator_stop to compile_future_features.

* Removing expected failure from PEP 479 unit test.
2024-05-13 23:18:55 +09:00
LYK
ef77e45427 Change error type for bad objects in "with" and "async with"
This patch does not cover all cases of `test_contextlib.py`

`bytecode::Instruction::SetupWith` and `BeforeAsyncWith`
raise a TypeError instead of an AttributeError.

Co-authored-by: Jeong YunWon <69878+youknowone@users.noreply.github.com>
2023-03-08 01:45:12 +09:00
CPython Developers
301b79c688 Update contextlib.py and test_contextlib from CPython 3.11.2 2023-03-08 00:12:07 +09:00
LYK
5d6a48b568 Mark failing tests of test_contextlib.py 2023-03-07 11:20:07 +09:00
CPython Developers
df48df5ede Update test/test_contextlib.py from CPython 3.11.2 2023-03-07 11:19:42 +09:00
Jeong YunWon
6ee827bd8a Fix CR/LF of python libraries 2023-02-28 17:11:41 +09:00
Dean Li
5ee4fb899b test: use os_helper 2021-11-28 20:51:32 +08:00
Chris Moradi
868b680305 more tests passing 2021-11-13 19:26:10 -08:00
Padraic Fanning
02ca1c5403 Clean up skips in test_contextlib 2021-10-10 19:11:24 -04:00
snowapril
2b994f98c5 add annotations for making test success
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-09-06 18:55:23 +09:00
snowapril
99b7b59986 add test_contextlib.py from cpython 3.8
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-09-06 18:55:23 +09:00