summaryrefslogtreecommitdiff
path: root/tests/test_parser.py
Commit message (Collapse)AuthorAgeFilesLines
* style: remove needless trailing commasNed Batchelder2023-01-261-1/+1
|
* mypy: test_parser.py test_phystokens.py test_process.py test_report.py ↵Ned Batchelder2023-01-071-26/+30
| | | | test_results.py test_setup.py
* fix: adjust some PyPy behaviors. #1515Ned Batchelder2022-12-271-4/+3
|
* refactor: no need for special handling of compiling unicode sourceNed Batchelder2022-11-061-2/+3
| | | | This was a holdover from Python 2 days.
* fix: `class` statements shouldn't be branches. #1449Ned Batchelder2022-09-261-3/+3
| | | | | | Revert "refactor: we no longer need to treat 'class' lines specially" This reverts commit 79f9f4575321fafc2ef770e3255f874db3d4b037.
* fix: don't cache a failed parseNed Batchelder2022-08-211-0/+9
| | | | Found by OSS-Fuzz: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=50381
* test: xfail decorator tests that fail on PyPy 3.8 (7.3.10alpha)Ned Batchelder2022-05-211-5/+4
| | | | https://foss.heptapod.net/pypy/pypy/-/issues/3749
* style: parens should indent the same as their opening lineNed Batchelder2022-05-011-5/+5
|
* build: Build and test tweaks to help with cross-compilationSteve Dower2022-04-301-1/+2
| | | | | | | | | | | | | | | For context, I've been testing whether a range of popular libraries are going to work on Windows ARM64. (This requires compiling on a regular x64 machine and then copying the wheel to an ARM64 one for testing.) The good news is, coverage seems to be just fine without any changes. However, because of a few assumptions in the test suite about always testing an in-place build, I had to make some tweaks to be able to run tests. My proposed tweaks should be fine for current uses, but they also allow the following: * support `SETUPTOOLS_EXT_SUFFIX` when building to override the pyd tag on Windows (used with `setup.py build_ext -L <path>` to point at [pythonarm64](https://www.nuget.org/packages/pythonarm64/) import libraries to do the cross-compile) * allow `COVERAGE_INSTALL_ARGS` to override how the tests install coverage into a venv (allows to point at a wheel rather than rebuilding from the sources) * allow `python igor.py remove_extension --from-install` to delete the extension module from `site-packages` rather than only the source tree * other changes to allow removing the `coverage` directory from the source tree before tests so that the installed copy will be used instead. I've tested these on my own Windows ARM64 machine, though unfortunately there aren't any available on CI services yet. If you wanted to start releasing (preview) wheels for win-arm64 you can, but there's no support (yet) in `cibuildwheel` or `build` to do it (because those tools don't really have a concept of cross-compilation for Windows at all... yet ;-) ). For the linter
* 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
|