summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_source_encoding.py
Commit message (Collapse)AuthorAgeFilesLines
* [3.11] gh-108303: Move tokenize-related data to Lib/test/tokenizedata ↵Victor Stinner2023-09-211-2/+3
| | | | | | | | | | | | | | | (GH-109265) (#109678) * gh-108303: Move tokenize-related data to Lib/test/tokenizedata (GH-109265) (cherry picked from commit 1110c5bc828218086f6397ec05a9312fb73ea30a) * gh-108303: Add `Lib/test/tokenizedata` to `TESTSUBDIRS` (#109314) (cherry picked from commit 42ab2cbd7b5e76e919b70883ae683e789dbd913d) --------- Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
* [3.11] gh-108416: Mark slow test methods with @requires_resource('cpu') ↵Serhiy Storchaka2023-09-031-1/+2
| | | | | | | (GH-108421) (GH-108799) Only mark tests which spend significant system or user time, by itself or in subprocesses. (cherry picked from commit f3ba0a74cd50274acdcd592d4ce8395b92492b7c)
* [3.11] gh-99891: Fix infinite recursion in the tokenizer when showing ↵Pablo Galindo Salgado2022-12-011-0/+12
| | | | | | | | warnings (GH-99893) (GH-99896) Automerge-Triggered-By: GH:pablogsal. (cherry picked from commit 417206a05c4545bde96c2bbbea92b53e6cac0d48) Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
* gh-96268: Fix loading invalid UTF-8 (GH-96270)Miss Islington (bot)2022-09-071-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. (cherry picked from commit 8bc356a7dd50cbdb46d10b8c7e457832431f5d9e) Co-authored-by: Michael Droettboom <mdboom@gmail.com>
* gh-96611: Fix error message for invalid UTF-8 in mid-multiline string (GH-96623)Miss Islington (bot)2022-09-061-0/+12
| | | | | (cherry picked from commit 05692c67c51b78a5a5a7bb61d646519025e38015) Co-authored-by: Michael Droettboom <mdboom@gmail.com>
* [3.11] gh-96189: Fix test_invalid_utf8 on a number of build bots (GH-96190) ↵Miss Islington (bot)2022-08-231-43/+43
| | | | | (#96218) Co-authored-by: Michael Droettboom <mdboom@gmail.com>
* [3.11] gh-94823: Improve coverage in tokenizer.c:valid_utf8 (GH-94856) (#96029)Miss Islington (bot)2022-08-161-0/+61
| | | Co-authored-by: Michael Droettboom <mdboom@gmail.com>
* bpo-40280: Skip subprocess-based tests on wasm32-emscripten (GH-30615)Christian Heimes2022-01-251-1/+2
|
* bpo-25643: Refactor the C tokenizer into smaller, logical units (GH-25050)Pablo Galindo2021-03-281-0/+17
|
* bpo-40275: Use new test.support helper submodules in tests (GH-21764)Hai Shi2020-08-071-1/+3
|
* bpo-40593: Improve syntax errors for invalid characters in source code. ↵Serhiy Storchaka2020-05-121-0/+3
| | | | (GH-20033)
* bpo-36919: make test_source_encoding.test_issue2301 ↵Pavel Koneski2019-09-111-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 Storchaka2016-03-201-1/+1
|
* Added new tests for detecting Python source code encoding.Serhiy Storchaka2016-03-201-2/+81
|
* Issue #22390: Remove files created by testsVictor Stinner2014-10-051-1/+2
|
* merge 3.3Benjamin Peterson2014-03-011-1/+2
|
* ReindentMartin v. Löwis2014-02-281-1/+1
|
* Merge with 3.3Martin v. Löwis2014-02-281-0/+9
|
* Issue #18202: Fix minor bugs and cleanup test_source_encoding.py.Serhiy Storchaka2013-06-191-12/+13
|
* Stop using the deprecated unittest.TestCase.assertRaisesRegexp()Brett Cannon2013-06-161-5/+5
|
* Issue #18048: Merge test_pep263.py and test_coding.py into ↵Serhiy Storchaka2013-06-131-7/+76
|\ | | | | | | test_source_encoding.py.
| * Issue #18048: Rename test_pep263.py to test_source_encoding.py.Serhiy Storchaka2013-06-131-0/+80
|
* Issue #18048: Rename test_coding.py to test_source_encoding.py.Serhiy Storchaka2013-06-131-0/+65