summaryrefslogtreecommitdiff
path: root/tests/test_parser.py
Commit message (Collapse)AuthorAgeFilesLines
* fix: 3.11 now traces decorator lines as the decorators executeNed Batchelder2022-01-151-0/+4
| | | | See: https://bugs.python.org/issue46234
* test(refactor): convert looping tests to parametrizeNed Batchelder2021-11-111-7/+8
|
* style: convert more string formatting to f-stringsNed Batchelder2021-11-111-1/+1
|
* refactor: we no longer need to treat 'class' lines speciallyNed Batchelder2021-11-111-3/+3
| | | | | Originally, this tokenizing code was paired with bytecode analysis. But now we use AST instead, so class lines don't need to be handled differently.
* fix: colons in decorators shouldn't stop an exclusionNed Batchelder2021-11-101-1/+21
|
* test: fix the trailing-space test, and suppress warnings about \<space>Ned Batchelder2021-10-301-2/+5
|
* refactor(test): make re_lines (et al) look like re.searchNed Batchelder2021-10-281-2/+2
| | | | and also replace some calls with just-plain re.search.
* fix(debug): ast_dump failed on a few thingsNed Batchelder2021-10-271-16/+21
|
* test: lightly test the ast_dump functionNed Batchelder2021-10-121-2/+24
|
* style: prefer explicit string concatenationNed Batchelder2021-10-101-1/+1
|
* feat: add support for Python 3.10 match-case statementsNed Batchelder2021-06-061-0/+18
|
* refactor: move exceptions to their own moduleNed Batchelder2021-05-021-1/+1
|
* refactor: remove a few more version checksNed Batchelder2021-05-021-1/+1
|
* refactor: pyupgrade --py36-plus tests/**.pyNed Batchelder2021-05-021-5/+5
|
* refactor: remove code explicitly choosing between py2 and py3Ned Batchelder2021-05-011-2/+0
|
* refactor: no need for our own xfail wrapperNed Batchelder2021-03-111-4/+3
|
* style: fix long lines and avoid backslashesnedbat/unittest2pytestNed Batchelder2021-01-311-57/+85
|
* style: correct placement of auto-added pytest importsNed Batchelder2021-01-311-1/+2
|
* refactor: unittest2pytest -w testsNed Batchelder2021-01-311-108/+61
| | | | One step of moving to pure pytest tests.
* Fix a test to be usable with PEP626Ned Batchelder2021-01-101-33/+35
| | | | | | | In the old code, the return and raise were unreachable, so Python 3.10 compiled them away. This meant the return and raise messages weren't in the missing arc fragments. The new code has a path to the return and raise.
* PEP 626: Docstring-only functions changed againNed Batchelder2021-01-101-1/+2
|
* Use set literalsNed Batchelder2021-01-031-6/+6
|
* PyPy 3.7 doesn't act exactly like CPython 3.7Ned Batchelder2020-10-101-1/+1
|
* More bitbucket->github urlsNed Batchelder2020-08-181-2/+2
|
* A known failure has been fixedNed Batchelder2020-07-051-1/+1
|
* Better xfail mechanismNed Batchelder2020-01-181-3/+6
|
* xfail a test due to a PyPy3 7.3.0 changeNed Batchelder2019-12-311-1/+3
|
* Move test helpers to tests.helpersNed Batchelder2019-12-311-3/+4
|
* Move arcz_to_arcs to misc so we can use it elsewhereNed Batchelder2019-06-191-4/+4
|
* Asserts should be expected,actualNed Batchelder2018-12-241-3/+3
|
* Adapt to 3.8's way of tracing decorated functionsNed Batchelder2018-11-031-3/+14
|
* Finally jumps back to exiting linesNed Batchelder2018-10-061-19/+50
| | | | | | 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.
* Update NOTICE link to GitHub.Ned Batchelder2018-06-241-1/+1
|
* Make version checking more uniformNed Batchelder2018-06-131-1/+1
|
* Adapt to a recent 3.7 change in how functions with only docstrings get ↵Ned Batchelder2018-06-131-2/+8
| | | | line-numbered
* Undo some 3.7b4 ast tweaksNed Batchelder2018-06-021-5/+1
|
* No more support for 2.6 or 3.3Ned Batchelder2018-05-051-4/+0
|
* Properly handle empty decorated functions in 3.7. #640Ned Batchelder2018-02-091-0/+17
|
* Python 3.7 no longer includes class docstrings in the lnotab tableNed Batchelder2017-10-051-4/+6
|
* More-precise no-coverage pragmasNed Batchelder2017-01-191-1/+1
|
* Properly handle if-statements optimized away. #522Ned Batchelder2017-01-161-1/+1
|
* More pragmas for test skipsNed Batchelder2017-01-141-1/+1
|
* Use standard skipTest, which unittest-mixins will override.Ned Batchelder2016-06-121-1/+1
|
* Better descriptions of missing one-line executables. Part of #475Ned Batchelder2016-03-271-5/+5
|
* Better branch-missed messages for lambdas.Ned Batchelder2016-02-251-0/+14
|
* Pick off some lintNed Batchelder2016-02-151-1/+2
|
* Add missing branch explanations for while-loopNed Batchelder2016-02-151-1/+14
|
* Skip a test on 2.6Ned Batchelder2016-02-151-0/+4
|
* More missing-branch descriptionsNed Batchelder2016-02-151-1/+12
|
* More work on better missing branch descriptionsNed Batchelder2016-02-141-4/+34
|