Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | fix: recent pypy3.9 now omits lines after jumps | Ned Batchelder | 2023-03-12 | 1 | -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 files | Ned Batchelder | 2023-01-05 | 1 | -0/+2 |
| | |||||
* | mypy: test_coverage.py, test_data.py | Ned Batchelder | 2023-01-04 | 1 | -85/+85 |
| | |||||
* | fix: adjust some PyPy behaviors. #1515 | Ned Batchelder | 2022-12-27 | 1 | -4/+0 |
| | |||||
* | test: xfail decorator tests that fail on PyPy 3.8 (7.3.10alpha) | Ned Batchelder | 2022-05-21 | 1 | -0/+4 |
| | | | | https://foss.heptapod.net/pypy/pypy/-/issues/3749 | ||||
* | test: remove version-specfic skips we no longer need | Ned Batchelder | 2022-05-13 | 1 | -5/+0 |
| | |||||
* | style: parens should indent the same as their opening line | Ned Batchelder | 2022-05-01 | 1 | -7/+7 |
| | |||||
* | fix: pypy3.9 traces decorators like CPython 3.8 | Ned Batchelder | 2022-02-20 | 1 | -5/+0 |
| | |||||
* | test: adapt to PyPy 3.9 v7.8.8 | Ned Batchelder | 2022-02-06 | 1 | -0/+5 |
| | |||||
* | refactor(test): use xfail for tests that fail on specific versions of Python | Ned Batchelder | 2022-01-19 | 1 | -1/+1 |
| | |||||
* | test: skip test that fails due to bpo 46331 | Ned Batchelder | 2022-01-15 | 1 | -0/+5 |
| | |||||
* | refactor: specialize exceptions | Ned Batchelder | 2021-11-14 | 1 | -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. #1271 | Ned Batchelder | 2021-11-05 | 1 | -1/+15 |
| | |||||
* | refactor: move exceptions to their own module | Ned Batchelder | 2021-05-02 | 1 | -1/+1 |
| | |||||
* | refactor: pyupgrade --py36-plus tests/**.py | Ned Batchelder | 2021-05-02 | 1 | -1/+0 |
| | |||||
* | refactor: remove code explicitly choosing between py2 and py3 | Ned Batchelder | 2021-05-01 | 1 | -15/+0 |
| | |||||
* | refactor: remove unused test class setting | Ned Batchelder | 2021-03-11 | 1 | -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. #1065 | Ned Batchelder | 2021-02-28 | 1 | -5/+5 |
| | | | | | Fixes: #1065 Fixes: #955 | ||||
* | refactor: convert all skipping to pytest skips | Ned Batchelder | 2021-02-07 | 1 | -5/+2 |
| | |||||
* | style: correct placement of auto-added pytest imports | Ned Batchelder | 2021-01-31 | 1 | -1/+2 |
| | |||||
* | refactor: unittest2pytest -w tests | Ned Batchelder | 2021-01-31 | 1 | -10/+11 |
| | | | | One step of moving to pure pytest tests. | ||||
* | A better test for 'if not __debug__' | Ned Batchelder | 2021-01-10 | 1 | -2/+1 |
| | |||||
* | PEP 626: constant tests are kept as no-ops | Ned Batchelder | 2021-01-10 | 1 | -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 Batchelder | 2021-01-10 | 1 | -82/+86 |
| | | | | This includes break/continue/return/raise. | ||||
* | 2506 is fixed? | Ned Batchelder | 2021-01-10 | 1 | -4/+7 |
| | |||||
* | Tests of statements after raise and return | Ned Batchelder | 2021-01-10 | 1 | -0/+22 |
| | |||||
* | More bitbucket->github urls | Ned Batchelder | 2020-08-18 | 1 | -1/+1 |
| | |||||
* | Sort the text missing results by line number, not kind | Ned Batchelder | 2018-12-25 | 1 | -5/+5 |
| | |||||
* | A simple test of a test function | Ned Batchelder | 2018-11-11 | 1 | -0/+17 |
| | |||||
* | Adapt to 3.8's way of tracing decorated functions | Ned Batchelder | 2018-11-03 | 1 | -4/+12 |
| | |||||
* | Update NOTICE link to GitHub. | Ned Batchelder | 2018-06-24 | 1 | -1/+1 |
| | |||||
* | Undo some 3.7b4 ast tweaks | Ned Batchelder | 2018-06-02 | 1 | -11/+2 |
| | |||||
* | Add an explicit test for weird module docstring behavior. | Ned Batchelder | 2017-10-05 | 1 | -0/+23 |
| | |||||
* | Python 3.7 no longer includes class docstrings in the lnotab table | Ned Batchelder | 2017-10-05 | 1 | -1/+6 |
| | |||||
* | Use an ISO standard encoding in coding declarations | Ned Batchelder | 2017-02-21 | 1 | -1/+1 |
| | | | | See https://twitter.com/nedbat/status/833723932658262016 for pedantry. | ||||
* | More pragmas for test skips | Ned Batchelder | 2017-01-14 | 1 | -1/+1 |
| | |||||
* | Use standard skipTest, which unittest-mixins will override. | Ned Batchelder | 2016-06-12 | 1 | -2/+2 |
| | |||||
* | Entry arcs now use the negative first line of the code object instead of -1. | Ned Batchelder | 2016-03-02 | 1 | -1/+1 |
| | |||||
* | Class docstrings shouldn't be considered executable. Not sure what happened ↵ | Ned Batchelder | 2016-01-11 | 1 | -1/+1 |
| | | | | there... | ||||
* | Class docstrings are executable. | Ned Batchelder | 2016-01-10 | 1 | -1/+3 |
| | |||||
* | Branch analysis is now done with AST instead of bytecode | Ned Batchelder | 2016-01-07 | 1 | -19/+81 |
|\ | |||||
| * | Add some tests for uncovered cases | Ned Batchelder | 2016-01-06 | 1 | -1/+16 |
| | | | | | | | | | | --HG-- branch : ast-branch | ||||
| * | Merge in the default branch | Ned Batchelder | 2016-01-02 | 1 | -32/+44 |
| |\ | | | | | | | | | | | | | --HG-- branch : ast-branch | ||||
| * | | Better exception support, include except-except arcs, and except-else | Ned Batchelder | 2016-01-02 | 1 | -12/+45 |
| | | | | | | | | | | | | | | | --HG-- branch : ast-branch | ||||
| * | | Coding declarations are a pain in the ass | Ned Batchelder | 2016-01-02 | 1 | -0/+9 |
| | | | | | | | | | | | | | | | --HG-- branch : ast-branch | ||||
| * | | check_coverage now assumes empty missing and unpredicted, and uses branch always | Ned Batchelder | 2016-01-01 | 1 | -6/+11 |
| | | | | | | | | | | | | | | | --HG-- branch : ast-branch | ||||
* | | | Fix another form-feed problem, #461 | Ned Batchelder | 2016-01-05 | 1 | -0/+16 |
| |/ |/| | |||||
* | | Change if-0 skips to real skips in the tests | Ned Batchelder | 2015-12-25 | 1 | -26/+26 |
| | | |||||
* | | if 0: might not do what we want, use a non-constant | Ned Batchelder | 2015-12-24 | 1 | -5/+5 |
| | | |||||
* | | Non-ascii characters work again in config regexes. Fixes #455. | Ned Batchelder | 2015-12-24 | 1 | -1/+13 |
|/ |