10 Commits

Author SHA1 Message Date
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
Padraic Fanning
26a8ef9370 Mark failing tests 2026-02-01 18:57:43 -05:00
CPython Developers
1022eeebdd Update test_code_module from v3.14.2-288-g06f9c8ca1c 2026-02-01 18:55:40 -05:00
Terry Tianlin Luan
e22091ef60 Update straightforward packages Pt 1 (#6595)
* Deleted _pycodecs.py

* Updated code.py library

* Updated the _pydatetime.py lib

* Removed distutils package

* Updated doctest package

* * Updated datetimetester.py
* Added back in _pycodecs.py

* Used tool to verify datetimetester + test_code_module
2025-12-31 02:31:08 +09:00
Vinh Nguyen
ca1c4c1f71 feat: Sync code.py + test_code_module.py from CPython v3.13.1 (#6181)
* feat: Sync code module from cpython 3.13

* also udpate test_code_module

---------

Co-authored-by: Jeong YunWon <jeong@youknowone.org>
2025-12-31 01:54:50 +09:00
NakanoMiku
c28cca97d1 Update test_code_module.py from CPython v3.12.0 2023-11-30 19:53:37 +08:00
Jeong YunWon
6ee827bd8a Fix CR/LF of python libraries 2023-02-28 17:11:41 +09:00
Dean Li
6f98288e84 test: use import_helper 2021-11-29 21:03:02 +08:00
snowapril
e4566007cd add annotations for making test success
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-09-06 18:55:23 +09:00
snowapril
53d26f4f9a add test_code_module.py from cpython 3.8
Signed-off-by: snowapril <sinjihng@gmail.com>
2021-09-06 18:55:23 +09:00