Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | gh-99891: Fix infinite recursion in the tokenizer when showing warnings ↵ | Pablo Galindo Salgado | 2022-11-30 | 1 | -0/+12 |
| | | | | | (GH-99893) Automerge-Triggered-By: GH:pablogsal | ||||
* | gh-96268: Fix loading invalid UTF-8 (#96270) | Michael Droettboom | 2022-09-07 | 1 | -3/+10 |
| | | | | | This makes tokenizer.c:valid_utf8 match stringlib/codecs.h:decode_utf8. It also fixes an off-by-one error introduced in 3.10 for the line number when the tokenizer reports bad UTF8. | ||||
* | gh-96611: Fix error message for invalid UTF-8 in mid-multiline string (#96623) | Michael Droettboom | 2022-09-06 | 1 | -0/+12 |
| | |||||
* | gh-96272: Replace `test_source_encoding`'s `test_pep263` with ↵ | Michael Droettboom | 2022-08-25 | 1 | -10/+9 |
| | | | | | | | | | | | | `test_import_encoded_module` from `test_imp` (GH-96275) Editors don't agree that `test_source_encoding.py` was valid koi8-r, making it hard to edit that file without the editor breaking it in some way (see gh-96272). Only one test actually relied on the koi8-r encoding and it was a duplicate of a test from the deprecated `imp` module's `test_imp`, so here we replace `test_pep263` with `test_import_encoded_module` stolen from `test_imp` and set `test_source_encoding.py`'s encoding to utf-8 to make editing it easier going forward. | ||||
* | gh-96189: Fix test_invalid_utf8 on a number of build bots (GH-96190) | Michael Droettboom | 2022-08-23 | 1 | -43/+43 |
| | | | | | | | | | The clearing of the temporary directory is not working on some platforms and leaving behind files. This has been updated to use the pattern in test_cmd_line.py [1] using the special TESTFN rather than a test directory. [1] https://github.com/python/cpython/blob/main/Lib/test/test_cmd_line.py#L559 | ||||
* | gh-94823: Improve coverage in tokenizer.c:valid_utf8 (GH-94856) | Michael Droettboom | 2022-08-16 | 1 | -0/+61 |
| | | | | | | When loading a source file from disk, there is a separate UTF-8 validator distinct from the one in `unicode_decode_utf8`. This exercises that code path with the same set of invalid inputs as we use for testing the "other" UTF-8 decoder. | ||||
* | bpo-40280: Skip subprocess-based tests on wasm32-emscripten (GH-30615) | Christian Heimes | 2022-01-25 | 1 | -1/+2 |
| | |||||
* | bpo-25643: Refactor the C tokenizer into smaller, logical units (GH-25050) | Pablo Galindo | 2021-03-28 | 1 | -0/+17 |
| | |||||
* | bpo-40275: Use new test.support helper submodules in tests (GH-21764) | Hai Shi | 2020-08-07 | 1 | -1/+3 |
| | |||||
* | bpo-40593: Improve syntax errors for invalid characters in source code. ↵ | Serhiy Storchaka | 2020-05-12 | 1 | -0/+3 |
| | | | | (GH-20033) | ||||
* | bpo-36919: make test_source_encoding.test_issue2301 ↵ | Pavel Koneski | 2019-09-11 | 1 | -1/+1 |
| | | | | | | implementation-independent (#13639) * bpo-36919: make test_issue2301 implementation-independent | ||||
* | Issue #26581: Use the first coding cookie on a line, not the last one. | Serhiy Storchaka | 2016-03-20 | 1 | -1/+1 |
| | |||||
* | Added new tests for detecting Python source code encoding. | Serhiy Storchaka | 2016-03-20 | 1 | -2/+81 |
| | |||||
* | Issue #22390: Remove files created by tests | Victor Stinner | 2014-10-05 | 1 | -1/+2 |
| | |||||
* | merge 3.3 | Benjamin Peterson | 2014-03-01 | 1 | -1/+2 |
| | |||||
* | Reindent | Martin v. Löwis | 2014-02-28 | 1 | -1/+1 |
| | |||||
* | Merge with 3.3 | Martin v. Löwis | 2014-02-28 | 1 | -0/+9 |
| | |||||
* | Issue #18202: Fix minor bugs and cleanup test_source_encoding.py. | Serhiy Storchaka | 2013-06-19 | 1 | -12/+13 |
| | |||||
* | Stop using the deprecated unittest.TestCase.assertRaisesRegexp() | Brett Cannon | 2013-06-16 | 1 | -5/+5 |
| | |||||
* | Issue #18048: Merge test_pep263.py and test_coding.py into ↵ | Serhiy Storchaka | 2013-06-13 | 1 | -7/+76 |
|\ | | | | | | | test_source_encoding.py. | ||||
| * | Issue #18048: Rename test_pep263.py to test_source_encoding.py. | Serhiy Storchaka | 2013-06-13 | 1 | -0/+80 |
| | |||||
* | Issue #18048: Rename test_coding.py to test_source_encoding.py. | Serhiy Storchaka | 2013-06-13 | 1 | -0/+65 |