summaryrefslogtreecommitdiff
path: root/coverage/env.py
Commit message (Collapse)AuthorAgeFilesLines
* fix: recent pypy3.9 now omits lines after jumpsNed Batchelder2023-03-121-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We were seeing these failures in the nightly builds: ``` FAILED tests/test_arcs.py::LoopArcTest::test_continue - AssertionError: Possible arcs differ: minus is expected, plus is actual (-1, 1) # .1 (1, 2) # 12 (1, 5) # 15 (2, 3) # 23 (3, 1) # 31 - (4, 1) # 41 (5, -1) # 5. Missing arcs differ: minus is expected, plus is actual - (4, 1) # 41 + assert False FAILED tests/test_arcs.py::LoopArcTest::test_break - AssertionError: Possible arcs differ: minus is expected, plus is actual (-1, 1) # .1 (1, 2) # 12 (1, 5) # 15 (2, 3) # 23 (3, 5) # 35 - (4, 1) # 41 (5, -1) # 5. Missing arcs differ: minus is expected, plus is actual (1, 5) # 15 - (4, 1) # 41 assert False FAILED tests/test_arcs.py::ExceptionArcTest::test_raise_followed_by_statement - AssertionError: Possible arcs differ: minus is expected, plus is actual (-1, 1) # .1 (1, 2) # 12 (2, 3) # 23 (3, 4) # 34 (4, 6) # 46 - (5, 8) # 58 (6, 7) # 67 (7, 8) # 78 (8, -1) # 8. Missing arcs differ: minus is expected, plus is actual - (5, 8) # 58 + assert False FAILED tests/test_coverage.py::SimpleStatementTest::test_raise_followed_by_statement - AssertionError: [1, 2, 4, 5] != [1, 2, 3, 4, 5] assert [1, 2, 4, 5] == [1, 2, 3, 4, 5] At index 2 diff: 4 != 3 Right contains one more item: 5 Full diff: - [1, 2, 3, 4, 5] ? --- + [1, 2, 4, 5] FAILED tests/test_coverage.py::SimpleStatementTest::test_break - AssertionError: [1, 2, 3, 5] != [1, 2, 3, 4, 5] assert [1, 2, 3, 5] == [1, 2, 3, 4, 5] At index 3 diff: 5 != 4 Right contains one more item: 5 Full diff: - [1, 2, 3, 4, 5] ? --- + [1, 2, 3, 5] FAILED tests/test_coverage.py::SimpleStatementTest::test_continue - AssertionError: [1, 2, 3, 5] != [1, 2, 3, 4, 5] assert [1, 2, 3, 5] == [1, 2, 3, 4, 5] At index 3 diff: 5 != 4 Right contains one more item: 5 Full diff: - [1, 2, 3, 4, 5] ? --- + [1, 2, 3, 5] ```
* mypy: use __future__ uniformly in checked filesNed Batchelder2023-01-051-0/+2
|
* refactor: a better way to filter `coverage debug pybehave`Ned Batchelder2023-01-011-4/+8
|
* mypy: add env.pyNed Batchelder2022-12-311-3/+6
|
* refactor: removed mentions of Jython and IronPythonNed Batchelder2022-12-301-2/+0
|
* refactor: @contract is completely goneNed Batchelder2022-12-291-1/+1
|
* refactor: remove more of the PyContracts stuffNed Batchelder2022-12-271-1/+0
|
* fix: adjust some PyPy behaviors. #1515Ned Batchelder2022-12-271-1/+6
|
* test: remove pycontractsNed Batchelder2022-12-251-8/+1
|
* fix: can't use PYPYVERSION without checking PYPY firstNed Batchelder2022-10-191-1/+4
|
* test: xfail some tests that need PyPy to improve #1426Ned Batchelder2022-08-021-1/+1
| | | | https://foss.heptapod.net/pypy/pypy/-/issues/3792
* fix: 3.11.0b4 has 0-numbered lines. Fixes #1419Ned Batchelder2022-07-121-0/+3
| | | | | CPython added these lines in https://github.com/python/cpython/commit/1bfe83a114da3939c00746fc44dc5da7f56f525f
* fix: pypy3.9 traces decorators like CPython 3.8Ned Batchelder2022-02-201-1/+1
|
* test: dropping old Python versions mean we no longer need ↵Ned Batchelder2022-02-061-3/+2
| | | | optimize_if_not_debug=0
* debug: pybehave is now an option on `coverage debug`Ned Batchelder2022-02-061-0/+14
|
* test: make if_not_debug optimization testing a little more rationalNed Batchelder2022-02-061-15/+16
|
* test: adapt to PyPy 3.9 v7.8.8Ned Batchelder2022-02-061-7/+13
|
* fix: 3.11 now traces decorator lines as the decorators executeNed Batchelder2022-01-151-0/+4
| | | | See: https://bugs.python.org/issue46234
* build(test): PyContracts doesn't work on 3.11Ned Batchelder2022-01-021-1/+5
| | | | and I don't think it ever will.
* refactor: remove code that was only needed for Python 3.6Ned Batchelder2021-12-311-12/+0
|
* test(fix): skip tests that trip a specific Mac 3.9 eventlet bugNed Batchelder2021-11-241-0/+1
|
* refactor(test): don't even import contracts if not using PyContractsNed Batchelder2021-11-041-0/+5
| | | | | | | | On CPython 3.11, PyContracts fails on import, so we need to shut it off more completely. PyContracts is unmaintained these days, so we'll probably get rid of it completely soon.
* fix: changes for PyPy3.8Ned Batchelder2021-10-251-1/+4
| | | | | | | | | | - Update tox.ini to let us run against PyPy3.8 - Some 3.8 behavior is (apparently) only on CPython - PyPy3.8 doesn't get along with virtualenv yet (https://github.com/pypa/virtualenv/issues/2182), so use venv instead for our virtualenv tests.
* feat: soft keywords are shown in bold in the HTML reportNed Batchelder2021-06-061-0/+4
| | | | | | | | The match and case soft keywords are shown in bold when they are keywords, and not when they are not. The underscore soft keyword is ignored, because it is harder to get right, and because it doesn't look that much different in bold anyway.
* feat: add support for Python 3.10 match-case statementsNed Batchelder2021-06-061-0/+3
|
* fix: in Python 3.10, leaving a with block exits through the with statement.Ned Batchelder2021-06-051-0/+3
| | | | This need 3.10.0b3 (not yet released) to fully pass.
* refactor: remove a few more version checksNed Batchelder2021-05-021-7/+4
|
* refactor: pyupgrade --py36-plus coverage/*.pyNed Batchelder2021-05-021-1/+1
|
* refactor: remove some unneeded behavior conditionalsNed Batchelder2021-05-011-15/+0
|
* refactor: remove code explicitly choosing between py2 and py3Ned Batchelder2021-05-011-4/+0
|
* fix: pypy3 7.3.4 uses a non-empty sys.path[0]Ned Batchelder2021-04-121-1/+4
|
* docs: note what pep626 isNed Batchelder2021-03-141-0/+2
|
* PEP 626: Docstring-only functions changed againNed Batchelder2021-01-101-0/+3
|
* PEP 626: constant tests are kept as no-opsNed Batchelder2021-01-101-2/+18
| | | | | The conditionals are now getting unwieldy, perhaps we can simplify them in the future?
* Clean up the platform constants in env.pyNed Batchelder2021-01-101-6/+7
|
* In 3.10, modules always have firstlineno==1Ned Batchelder2021-01-101-0/+4
|
* Py 3.10 doesn't jump back from finally any moreNed Batchelder2021-01-101-1/+1
|
* Python 3.10 doesn't compile statments after unconditional jumps.Ned Batchelder2021-01-101-0/+7
| | | | This includes break/continue/return/raise.
* PyPy 3.7 doesn't act exactly like CPython 3.7Ned Batchelder2020-10-101-1/+1
|
* Fix bug with missing negative line numbers on PyPy3 7.1 #943Ned Batchelder2020-02-231-1/+1
|
* Remove a temporary xfail for 3.9a2Ned Batchelder2020-01-251-4/+0
|
* A better name for a thing I will soon deleteNed Batchelder2020-01-041-1/+1
|
* bpo-39114 will be fixed soon.Ned Batchelder2019-12-311-4/+5
|
* xfail a test due to a PyPy3 7.3.0 changeNed Batchelder2019-12-311-5/+8
|
* bpo 39114 broke 3.9, but maybe it's their bugNed Batchelder2019-12-211-0/+4
|
* Adapt to 3.9's way of reporting files using absolute paths.Ned Batchelder2019-11-251-0/+3
|
* Meta on linux; makefile target rationalizationNed Batchelder2019-11-081-1/+1
|
* Adapt to optimization tweak in CPython 3.8.0b1Ned Batchelder2019-06-051-1/+4
|
* Move more PYVERSION to be PYBEHAVIORNed Batchelder2019-03-241-0/+27
|
* Move some version conditionals to PYBEHAVIORNed Batchelder2019-03-241-0/+6
|