Commit Graph
17 Commits
Author SHA1 Message Date
chestnut1717 d6161ac321 Fix EOF SyntaxError diagnostics (#8429)
* Fix EOF SyntaxError diagnostics

* Fix Scope EOF SyntaxError location conversion

* Fix Additional Unexpected Test

* Docs Add Annotation source_location_in_code_points()
2026-08-09 14:58:53 +09:00
Shahar Naveh 221d95cbbe Run windows tests with -u all (#8134)
* Enable all test resources on windows

* Mark tests

* mark wmi test
2026-06-22 16:46:53 +09:00
Jeong, YunWon f090ae3237 Rewrite _tokenize with 2-phase model
Replace per-line reparsing with single-pass tokenization:
- Read all lines via readline, parse once, yield tokens
- Fix token type values (COMMENT=65, NL=66, OP=55)
- Fix NEWLINE/NL end positions and implicit newline handling
- Fix DEDENT positions via look-ahead to next non-DEDENT token
- Handle FSTRING_MIDDLE brace unescaping ({{ → {, }} → })
- Emit implicit NL before ENDMARKER when source lacks trailing newline
- Raise IndentationError from lexer errors
- Remove 13 expectedFailure marks for now-passing tests
2026-03-10 11:28:16 +09:00
CPython Developers 80ca535fca Update tokenize from v3.14.3 2026-03-10 11:28:16 +09:00
Ashwin Naren 1f3a9672c3 Add _winapi.GetACP and enable test_unicode on windows (#5547)
Signed-off-by: Ashwin Naren <arihant2math@gmail.com>
2025-02-24 13:21:02 +09:00
Jeong YunWon 367a948ff0 Adapt unittest.expectedFailureIf 2023-03-02 04:41:15 +09:00
yt2b d3b587afc7 Remove the decorators 2023-01-05 18:52:11 +09:00
dvermd f2bfb78d3c Fix ast types' _fields and use 0-based column 2022-10-27 03:09:38 +09:00
CPython Developers f509ab38ab Update tokenize from CPython 3.10.5 2022-08-09 05:41:49 +09:00
Dean Li 5ee4fb899b test: use os_helper 2021-11-28 20:51:32 +08:00
Jeong YunWon 913b78ca44 Revert "Merge pull request #3433 from deantvv/test-update"
This reverts commit 9fa5c5ac66, reversing
changes made to e7fa32c687.
2021-11-17 17:06:51 +09:00
Dean Li 49a5805d11 test: use os_helper 2021-11-13 02:18:33 +00:00
Noah 6f0013a3a8 Add method.__self__ attribute 2021-06-02 21:17:15 -05:00
Padraic Fanning 9ae51fb2b9 Import sys temporarily 2021-05-26 22:09:05 -04:00
Padraic Fanning bc858cd13a Mark erroring tests on Windows 2021-05-26 21:50:33 -04:00
Padraic Fanning 0b449cc6a5 Mark erroring/failing tests 2021-05-26 21:22:23 -04:00
Padraic Fanning 67420d47fd Add test_tokenize from CPython 3.8 2021-05-26 21:04:55 -04:00