summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_tabnanny.py
Commit message (Collapse)AuthorAgeFilesLines
* [3.12] gh-104825: Remove implicit newline in the line attribute in tokens ↵Pablo Galindo Salgado2023-05-241-4/+4
| | | | | emitted in the tokenize module (GH-104846). (#104850) (cherry picked from commit c8cf9b42eb2bfbd4c3e708ec28d32430248a1d7a)
* gh-104741: Add line number attribute to indentation error exception (#104743)Marta Gómez Macías2023-05-221-1/+1
|
* gh-102856: Python tokenizer implementation for PEP 701 (#104323)Marta Gómez Macías2023-05-211-2/+2
| | | | | | | | | | | This commit replaces the Python implementation of the tokenize module with an implementation that reuses the real C tokenizer via a private extension module. The tokenize module now implements a compatibility layer that transforms tokens from the C tokenizer into Python tokenize tokens for backward compatibility. As the C tokenizer does not emit some tokens that the Python tokenizer provides (such as comments and non-semantic newlines), a new special mode has been added to the C tokenizer mode that currently is only used via the extension module that exposes it to the Python layer. This new mode forces the C tokenizer to emit these new extra tokens and add the appropriate metadata that is needed to match the old Python implementation. Co-authored-by: Pablo Galindo <pablogsal@gmail.com>
* gh-63301: Set exit code when tabnanny CLI exits on error (#7699)Jaysinh Shukla2023-03-041-11/+19
| | | Co-authored-by: Erlend E. Aasland <erlend.aasland@protonmail.com>
* bpo-46198: rename duplicate tests and remove unused code (GH-30297)Nikita Sobolev2022-03-101-1/+0
|
* bpo-44031: fix test_tabnanny failure in non-ascii CWD (GH-31014)Irit Katriel2022-02-011-2/+2
|
* bpo-40275: Use new test.support helper submodules in tests (GH-21743)Hai Shi2020-08-061-1/+2
|
* Remove unused imports in tests (GH-14518)Victor Stinner2019-07-011-1/+0
|
* bpo-31904: Fix test_tabnanny on VxWorks (GH-12646)Lihua Zhao2019-04-171-2/+4
| | | | Fix test_tabnanny on VxWorks: adjust ENOENT error message, use os.strerror().
* closes bpo-34594: Don't hardcode errno values in the tests. (GH-9076)Zackery Spytz2018-09-061-1/+3
|
* bpo-19382: Adding test cases for module tabnanny (GH-851)Jaysinh Shukla2018-06-141-0/+343
Testing strategy: whitebox.