Commit message (Collapse) | Author | Age | |
---|---|---|---|
* | gh-108416: Mark slow test methods with @requires_resource('cpu') (GH-108421) | Serhiy Storchaka | 2023-09-02 |
| | | | | Only mark tests which spend significant system or user time, by itself or in subprocesses. | ||
* | gh-99891: Fix infinite recursion in the tokenizer when showing warnings ↵ | Pablo Galindo Salgado | 2022-11-30 |
| | | | | | (GH-99893) Automerge-Triggered-By: GH:pablogsal | ||
* | gh-96268: Fix loading invalid UTF-8 (#96270) | Michael Droettboom | 2022-09-07 |
| | | | | | 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-07 |
| | |||
* | gh-96272: Replace `test_source_encoding`'s `test_pep263` with ↵ | Michael Droettboom | 2022-08-25 |
| | | | | | | | | | | | | `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 |
| | | | | | | | | | 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 |
| | | | | | | 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 |
| | |||
* | bpo-25643: Refactor the C tokenizer into smaller, logical units (GH-25050) | Pablo Galindo | 2021-03-28 |
| | |||
* | bpo-40275: Use new test.support helper submodules in tests (GH-21764) | Hai Shi | 2020-08-07 |
| | |||
* | bpo-40593: Improve syntax errors for invalid characters in source code. ↵ | Serhiy Storchaka | 2020-05-12 |
| | | | | (GH-20033) | ||
* | bpo-36919: make test_source_encoding.test_issue2301 ↵ | Pavel Koneski | 2019-09-11 |
| | | | | | | 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 |
| | |||
* | Added new tests for detecting Python source code encoding. | Serhiy Storchaka | 2016-03-20 |
| | |||
* | Issue #22390: Remove files created by tests | Victor Stinner | 2014-10-05 |
| | |||
* | merge 3.3 | Benjamin Peterson | 2014-03-01 |
| | |||
* | Reindent | Martin v. Löwis | 2014-02-28 |
| | |||
* | Merge with 3.3 | Martin v. Löwis | 2014-02-28 |
| | |||
* | Issue #18202: Fix minor bugs and cleanup test_source_encoding.py. | Serhiy Storchaka | 2013-06-19 |
| | |||
* | Stop using the deprecated unittest.TestCase.assertRaisesRegexp() | Brett Cannon | 2013-06-16 |
| | |||
* | Issue #18048: Merge test_pep263.py and test_coding.py into ↵ | Serhiy Storchaka | 2013-06-13 |
|\ | | | | | | | test_source_encoding.py. | ||
| * | Issue #18048: Rename test_pep263.py to test_source_encoding.py. | Serhiy Storchaka | 2013-06-13 |
| | |||
* | Issue #18048: Rename test_coding.py to test_source_encoding.py. | Serhiy Storchaka | 2013-06-13 |