summaryrefslogtreecommitdiff
path: root/coverage/parser.py
Commit message (Collapse)AuthorAgeFilesLines
* fix(debug): ast_dump failed on a few thingsNed Batchelder2021-10-271-2/+5
|
* test: lightly test the ast_dump functionNed Batchelder2021-10-121-67/+66
|
* style: prefer explicit string concatenationNed Batchelder2021-10-101-1/+1
|
* test: mark some uncovered thingsNed Batchelder2021-10-081-2/+6
|
* fix: missing exceptions through with statements in 3.10 aren't considered ↵Ned Batchelder2021-08-141-8/+4
| | | | missing branches. #1205
* fix: correct previous refactoringsNed Batchelder2021-07-281-2/+2
| | | | | File names should not be rendered with !r, since on Windows that will produce double backslashes, which only confuses people.
* refactor: convert %-strings to f-stringsNed Batchelder2021-07-281-4/+3
|
* fix: match/case will trace the default case lineNed Batchelder2021-07-271-3/+0
|
* fix: raise chained errors with "from" #998Ned Batchelder2021-07-201-5/+3
| | | | | | This makes exceptions report their causes correctly, as "The above exception was the direct cause of the following exception" instead of "During handling of the above exception, another exception occurred."
* feat: add support for Python 3.10 match-case statementsNed Batchelder2021-06-061-0/+21
|
* fix: in Python 3.10, leaving a with block exits through the with statement.Ned Batchelder2021-06-051-9/+74
| | | | This need 3.10.0b3 (not yet released) to fully pass.
* refactor: no need for clever byte_parser propertyNed Batchelder2021-06-051-10/+3
| | | | | It was only ever used once per object, so just make the ByteParser when we need it.
* test: add a test for annotated assignmentNed Batchelder2021-06-051-1/+4
| | | | | | | | | Every statement-level ast node should be tested. Annotated assignment was missing. Also, we don't need "exec" anymore, that was only for Python 2. And: this is the 1000th test!
* test: during testing, be strict about handling all ast nodesNed Batchelder2021-06-041-4/+3
|
* refactor: better naming for a code object dispatcherNed Batchelder2021-06-041-14/+16
|
* refactor: delegate to blocks and avoid isinstanceNed Batchelder2021-06-041-38/+87
|
* refactor: remove things only needed for Python 2Ned Batchelder2021-06-041-26/+1
|
* refactor: move exceptions to their own moduleNed Batchelder2021-05-021-1/+1
|
* refactor: remove a few more version checksNed Batchelder2021-05-021-2/+1
|
* refactor: pyupgrade --py36-plus coverage/*.pyNed Batchelder2021-05-021-37/+36
|
* refactor: remove more unneeded backward.py shimsNed Batchelder2021-05-011-3/+2
| | | | | | | | | | | | | | Gone are: - iitems - litems - iternext - to_bytes - to_string - binary_bytes - byte_to_int - bytes_to_ints - BUILTINS
* refactor: remove unneeded backward.py shimsNed Batchelder2021-05-011-3/+2
| | | | | | | | | | | | | | | Removed were: - StringIO - configparser - string_class - unicode_class - range - zip_longest - get_thread_id - path_types - shlex_quote - reprlib
* refactor: remove code explicitly choosing between py2 and py3Ned Batchelder2021-05-011-5/+2
|
* tool: more information about the location of ast nodes when debuggingNed Batchelder2021-03-131-1/+6
|
* A better test for 'if not __debug__'Ned Batchelder2021-01-101-3/+1
|
* PEP 626: constant tests are kept as no-opsNed Batchelder2021-01-101-1/+6
| | | | | The conditionals are now getting unwieldy, perhaps we can simplify them in the future?
* In 3.10, modules always have firstlineno==1Ned Batchelder2021-01-101-1/+9
|
* Use co_lines() if it's availableNed Batchelder2021-01-101-27/+28
|
* Use set literalsNed Batchelder2021-01-031-9/+9
|
* Thanks, Kjell BradenNed Batchelder2020-03-261-1/+0
|
* handle decorators for AsyncFunctionDefs. Closes #964Kjell Braden2020-03-241-0/+2
|
* Exit arcs have to be corrected to first linesNed Batchelder2019-09-211-1/+5
| | | | | | | | | | We've long remapped line numbers to the first line of a multi-line statement. But exit line numbers (negative numbers) were not remapped. This meant we were needlessly chasing weirdnesses in implementations. But the actual results of running coverage always remapped results to the first line, so there's no point in tracking the unmapped line numbers in our tests.
* No need for format indexes (mostly)Ned Batchelder2019-09-011-19/+19
|
* This class was simpler as a functionNed Batchelder2019-06-171-3/+2
|
* Move more PYVERSION to be PYBEHAVIORNed Batchelder2019-03-241-1/+1
|
* Python 3.8 will optimize away "while True:"Ned Batchelder2018-11-111-0/+21
|
* Debug-time environment variables can be set with set_env.pyNed Batchelder2018-11-031-0/+2
|
* Adapt to 3.8's way of tracing decorated functionsNed Batchelder2018-11-031-7/+24
|
* Finally jumps back to exiting linesNed Batchelder2018-10-061-9/+38
| | | | | | In Python 3.8, when a finally clause is run because a line in the try block is exiting the block, the exiting line is visited again after the finally block.
* Python 3.8 uses Constant nodes in the ASTNed Batchelder2018-10-041-1/+1
|
* Python 3.6 changed lnotab to signed bytesNed Batchelder2018-10-041-0/+2
|
* Update NOTICE link to GitHub.Ned Batchelder2018-06-241-1/+1
|
* Properly handle empty decorated functions in 3.7. #640Ned Batchelder2018-02-091-6/+7
|
* Update to pylint 1.7.1Ned Batchelder2017-04-221-1/+0
|
* One more tweak to StopEverythingNed Batchelder2017-01-211-2/+2
|
* More-precise no-coverage pragmasNed Batchelder2017-01-191-1/+1
|
* A few more lines coveredNed Batchelder2017-01-171-1/+1
|
* Properly handle if-statements optimized away. #522Ned Batchelder2017-01-161-9/+95
|
* Slight AST_DUMP improvementsNed Batchelder2017-01-161-3/+3
|
* Reporting doesn't work on Jython, so don't run reporting tests there.Ned Batchelder2017-01-141-4/+4
| | | | | --HG-- extra : amend_source : 144fd0ffb49fdef1139ae3f0085831ece14de43f