summaryrefslogtreecommitdiff
path: root/tests/test_coverage.py
Commit message (Collapse)AuthorAgeFilesLines
* fix: recent pypy3.9 now omits lines after jumpsNed Batchelder2023-03-121-3/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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
|
* mypy: test_coverage.py, test_data.pyNed Batchelder2023-01-041-85/+85
|
* fix: adjust some PyPy behaviors. #1515Ned Batchelder2022-12-271-4/+0
|
* test: xfail decorator tests that fail on PyPy 3.8 (7.3.10alpha)Ned Batchelder2022-05-211-0/+4
| | | | https://foss.heptapod.net/pypy/pypy/-/issues/3749
* test: remove version-specfic skips we no longer needNed Batchelder2022-05-131-5/+0
|
* style: parens should indent the same as their opening lineNed Batchelder2022-05-011-7/+7
|
* fix: pypy3.9 traces decorators like CPython 3.8Ned Batchelder2022-02-201-5/+0
|
* test: adapt to PyPy 3.9 v7.8.8Ned Batchelder2022-02-061-0/+5
|
* refactor(test): use xfail for tests that fail on specific versions of PythonNed Batchelder2022-01-191-1/+1
|
* test: skip test that fails due to bpo 46331Ned Batchelder2022-01-151-0/+5
|
* refactor: specialize exceptionsNed Batchelder2021-11-141-4/+4
| | | | | | CoverageException is fine as a base class, but not good to use for raising (and catching sometimes). Introduce specialized exceptions that allow third-party tools to integrate better.
* fix: don't report branches to exclusions as missing. #1271Ned Batchelder2021-11-051-1/+15
|
* refactor: move exceptions to their own moduleNed Batchelder2021-05-021-1/+1
|
* refactor: pyupgrade --py36-plus tests/**.pyNed Batchelder2021-05-021-1/+0
|
* refactor: remove code explicitly choosing between py2 and py3Ned Batchelder2021-05-011-15/+0
|
* refactor: remove unused test class settingNed Batchelder2021-03-111-4/+0
| | | | | | | | | unittest_mixins would check that files got created if a test made a temporary directory, so that we could trim down making temp dirs needlessly. But we don't use unittest_mixins any more, so this setting does nothing. Remove it.
* fix: don't report branches to missing lines. #1065Ned Batchelder2021-02-281-5/+5
| | | | | Fixes: #1065 Fixes: #955
* refactor: convert all skipping to pytest skipsNed Batchelder2021-02-071-5/+2
|
* style: correct placement of auto-added pytest importsNed Batchelder2021-01-311-1/+2
|
* refactor: unittest2pytest -w testsNed Batchelder2021-01-311-10/+11
| | | | One step of moving to pure pytest tests.
* A better test for 'if not __debug__'Ned Batchelder2021-01-101-2/+1
|
* PEP 626: constant tests are kept as no-opsNed Batchelder2021-01-101-4/+15
| | | | | The conditionals are now getting unwieldy, perhaps we can simplify them in the future?
* Python 3.10 doesn't compile statments after unconditional jumps.Ned Batchelder2021-01-101-82/+86
| | | | This includes break/continue/return/raise.
* 2506 is fixed?Ned Batchelder2021-01-101-4/+7
|
* Tests of statements after raise and returnNed Batchelder2021-01-101-0/+22
|
* More bitbucket->github urlsNed Batchelder2020-08-181-1/+1
|
* Sort the text missing results by line number, not kindNed Batchelder2018-12-251-5/+5
|
* A simple test of a test functionNed Batchelder2018-11-111-0/+17
|
* Adapt to 3.8's way of tracing decorated functionsNed Batchelder2018-11-031-4/+12
|
* Update NOTICE link to GitHub.Ned Batchelder2018-06-241-1/+1
|
* Undo some 3.7b4 ast tweaksNed Batchelder2018-06-021-11/+2
|
* Add an explicit test for weird module docstring behavior.Ned Batchelder2017-10-051-0/+23
|
* Python 3.7 no longer includes class docstrings in the lnotab tableNed Batchelder2017-10-051-1/+6
|
* Use an ISO standard encoding in coding declarationsNed Batchelder2017-02-211-1/+1
| | | | See https://twitter.com/nedbat/status/833723932658262016 for pedantry.
* More pragmas for test skipsNed Batchelder2017-01-141-1/+1
|
* Use standard skipTest, which unittest-mixins will override.Ned Batchelder2016-06-121-2/+2
|
* Entry arcs now use the negative first line of the code object instead of -1.Ned Batchelder2016-03-021-1/+1
|
* Class docstrings shouldn't be considered executable. Not sure what happened ↵Ned Batchelder2016-01-111-1/+1
| | | | there...
* Class docstrings are executable.Ned Batchelder2016-01-101-1/+3
|
* Branch analysis is now done with AST instead of bytecodeNed Batchelder2016-01-071-19/+81
|\
| * Add some tests for uncovered casesNed Batchelder2016-01-061-1/+16
| | | | | | | | | | --HG-- branch : ast-branch
| * Merge in the default branchNed Batchelder2016-01-021-32/+44
| |\ | | | | | | | | | | | | --HG-- branch : ast-branch
| * | Better exception support, include except-except arcs, and except-elseNed Batchelder2016-01-021-12/+45
| | | | | | | | | | | | | | | --HG-- branch : ast-branch
| * | Coding declarations are a pain in the assNed Batchelder2016-01-021-0/+9
| | | | | | | | | | | | | | | --HG-- branch : ast-branch
| * | check_coverage now assumes empty missing and unpredicted, and uses branch alwaysNed Batchelder2016-01-011-6/+11
| | | | | | | | | | | | | | | --HG-- branch : ast-branch
* | | Fix another form-feed problem, #461Ned Batchelder2016-01-051-0/+16
| |/ |/|
* | Change if-0 skips to real skips in the testsNed Batchelder2015-12-251-26/+26
| |
* | if 0: might not do what we want, use a non-constantNed Batchelder2015-12-241-5/+5
| |
* | Non-ascii characters work again in config regexes. Fixes #455.Ned Batchelder2015-12-241-1/+13
|/