Victor Stinner
8d99502aac
[3.11] gh-108303: Move tokenize-related data to Lib/test/tokenizedata (GH-109265) ( #109678 )
...
* gh-108303: Move tokenize-related data to Lib/test/tokenizedata (GH-109265)
(cherry picked from commit 1110c5bc82
)
* gh-108303: Add `Lib/test/tokenizedata` to `TESTSUBDIRS` (#109314 )
(cherry picked from commit 42ab2cbd7b
)
---------
Co-authored-by: Nikita Sobolev <mail@sobolevn.me>
2023-09-21 21:46:05 +02:00
Serhiy Storchaka
76f52196b9
[3.11] gh-108416: Mark slow test methods with @requires_resource('cpu') (GH-108421) (GH-108799)
...
Only mark tests which spend significant system or user time,
by itself or in subprocesses.
(cherry picked from commit f3ba0a74cd
)
2023-09-03 09:34:30 +03:00
Pablo Galindo Salgado
6282ef6c3f
[3.11] gh-99891: Fix infinite recursion in the tokenizer when showing warnings (GH-99893) (GH-99896)
...
Automerge-Triggered-By: GH:pablogsal.
(cherry picked from commit 417206a05c
)
Co-authored-by: Pablo Galindo Salgado <Pablogsal@gmail.com>
2022-12-01 00:57:04 -08:00
Miss Islington (bot)
ffafa9b91d
gh-96268: Fix loading invalid UTF-8 (GH-96270)
...
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 8bc356a7dd
)
Co-authored-by: Michael Droettboom <mdboom@gmail.com>
2022-09-07 14:49:17 -07:00
Miss Islington (bot)
bb0dab5c48
gh-96611: Fix error message for invalid UTF-8 in mid-multiline string (GH-96623)
...
(cherry picked from commit 05692c67c5
)
Co-authored-by: Michael Droettboom <mdboom@gmail.com>
2022-09-06 16:40:17 -07:00
Miss Islington (bot)
c01fc9d30a
[3.11] gh-96189: Fix test_invalid_utf8 on a number of build bots (GH-96190) ( #96218 )
...
Co-authored-by: Michael Droettboom <mdboom@gmail.com>
2022-08-23 23:28:44 +01:00
Miss Islington (bot)
2bb363cfcd
[3.11] gh-94823: Improve coverage in tokenizer.c:valid_utf8 (GH-94856) ( #96029 )
...
Co-authored-by: Michael Droettboom <mdboom@gmail.com>
2022-08-16 17:26:40 +01:00
Christian Heimes
8464fbc42e
bpo-40280: Skip subprocess-based tests on wasm32-emscripten (GH-30615)
2022-01-25 08:09:06 +01:00
Pablo Galindo
261a452a13
bpo-25643: Refactor the C tokenizer into smaller, logical units (GH-25050)
2021-03-28 23:48:05 +01:00
Hai Shi
598a951844
bpo-40275: Use new test.support helper submodules in tests (GH-21764)
2020-08-07 17:18:38 +02:00
Serhiy Storchaka
74ea6b5a75
bpo-40593: Improve syntax errors for invalid characters in source code. (GH-20033)
2020-05-12 12:42:04 +03:00
Pavel Koneski
b6643dcfc2
bpo-36919: make test_source_encoding.test_issue2301 implementation-independent ( #13639 )
...
* bpo-36919: make test_issue2301 implementation-independent
2019-09-11 14:57:32 +01:00
Serhiy Storchaka
e431d3c9aa
Issue #26581 : Use the first coding cookie on a line, not the last one.
2016-03-20 23:36:29 +02:00
Serhiy Storchaka
97eee1cfda
Added new tests for detecting Python source code encoding.
2016-03-20 22:29:40 +02:00
Victor Stinner
047b7ae566
Issue #22390 : Remove files created by tests
2014-10-05 17:37:41 +02:00
Benjamin Peterson
126041844c
merge 3.3
2014-03-01 10:34:22 -05:00
Martin v. Löwis
80875fe439
Reindent
2014-02-28 15:49:06 +01:00
Martin v. Löwis
78f1e4c865
Merge with 3.3
2014-02-28 15:43:36 +01:00
Serhiy Storchaka
10dc0eb5a4
Issue #18202 : Fix minor bugs and cleanup test_source_encoding.py.
2013-06-19 10:29:58 +03:00
Brett Cannon
39295e7a55
Stop using the deprecated unittest.TestCase.assertRaisesRegexp()
2013-06-16 11:37:57 -04:00
Serhiy Storchaka
9702a17a6a
Issue #18048 : Merge test_pep263.py and test_coding.py into test_source_encoding.py.
2013-06-13 10:08:00 +03:00
Serhiy Storchaka
07c805d0fc
Issue #18048 : Rename test_coding.py to test_source_encoding.py.
2013-06-13 09:50:42 +03:00
Serhiy Storchaka
29f2d73068
Issue #18048 : Rename test_pep263.py to test_source_encoding.py.
2013-06-13 09:48:15 +03:00