Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | test(fix): skip tests that trip a specific Mac 3.9 eventlet bug | Ned Batchelder | 2021-11-24 | 1 | -0/+10 |
| | |||||
* | test(refactor): if two skips apply, put the more significant reason closer ↵ | Ned Batchelder | 2021-11-21 | 1 | -1/+1 |
| | | | | to the def | ||||
* | fix(test): make .pth files once per session | Ned Batchelder | 2021-11-21 | 1 | -1/+4 |
| | | | | | | | | | | | The old way, we made and deleted .pth file around each test. This caused problems because pth files are written to a common location shared by all test workers, so tests would fail because pth files were being deleted as other workers were trying to use them. Now we make the pth file once per session. There's still a chance that a worker will be using a pth file just as another worker is ending and removing it. | ||||
* | style: convert more string formatting to f-strings | Ned Batchelder | 2021-11-11 | 1 | -2/+2 |
| | |||||
* | fix: CPython 3.11 support. #1241 | Ned Batchelder | 2021-11-10 | 1 | -0/+2 |
| | | | | | | | | | | | The fix for CTracer is egregious and will need to be updated when there's a supported way to do it. The fullcoverage skip is noted in https://github.com/nedbat/coveragepy/issues/1278 The raise_through_with skip is noted in https://github.com/nedbat/coveragepy/issues/1270 | ||||
* | fix: changes for PyPy3.8 | Ned Batchelder | 2021-10-25 | 1 | -0/+2 |
| | | | | | | | | | | - 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. | ||||
* | test: parametrize test_pathologically_long_code_object | Ned Batchelder | 2021-10-14 | 1 | -21/+18 |
| | | | | | While experimenting with packing branch ends into one int, this test showed a mistake I had made. Turns out it wasn't an obsolete test after all. | ||||
* | test: don't use subprocesses where we don't have to | Ned Batchelder | 2021-10-13 | 1 | -3/+4 |
| | | | | | | When running tests with `-n 0`, this shaves 4 seconds off the run time. When running the complete test suite with xdist, it takes 2 seconds longer!? | ||||
* | style: prefer explicit string concatenation | Ned Batchelder | 2021-10-10 | 1 | -23/+21 |
| | |||||
* | test: another test suggested by Mark Shannon | Ned Batchelder | 2021-08-31 | 1 | -0/+15 |
| | |||||
* | fix: missing exceptions through with statements in 3.10 aren't considered ↵ | Ned Batchelder | 2021-08-14 | 1 | -0/+56 |
| | | | | missing branches. #1205 | ||||
* | refactor: move a test helper to CoverageTest | Ned Batchelder | 2021-08-14 | 1 | -6/+2 |
| | |||||
* | test: add a test for #1205 bpo-44840 | Ned Batchelder | 2021-08-09 | 1 | -1/+27 |
| | |||||
* | fix: match/case will trace the default case line | Ned Batchelder | 2021-07-27 | 1 | -1/+1 |
| | |||||
* | test: add a test for bpo 44622, #1176 | Ned Batchelder | 2021-07-19 | 1 | -0/+24 |
| | |||||
* | test: add tests of #1175 | Ned Batchelder | 2021-07-19 | 1 | -0/+34 |
| | | | | | | Python versions before 3.10 didn't trace trailing "pass" statements correctly. I don't think that will change at this point, so we'll skip this test for those versions. | ||||
* | test: a better way to skip a test for two reasons | Ned Batchelder | 2021-07-13 | 1 | -5/+2 |
| | |||||
* | test: skip a test that won't run on 3.6 | Ned Batchelder | 2021-07-13 | 1 | -0/+1 |
| | |||||
* | test: add a test for bug #1158 | Ned Batchelder | 2021-07-13 | 1 | -0/+25 |
| | |||||
* | test: 3.10.0b4 traces match/case incorrectly | Ned Batchelder | 2021-07-12 | 1 | -1/+5 |
| | | | | See: https://bugs.python.org/issue44600 | ||||
* | test: add a test for #1184. | Ned Batchelder | 2021-07-08 | 1 | -0/+17 |
| | | | | | Note: this test fails on 3.10.0b3, the current 3.10 version in the CI tests. | ||||
* | feat: add support for Python 3.10 match-case statements | Ned Batchelder | 2021-06-06 | 1 | -0/+51 |
| | |||||
* | fix: in Python 3.10, leaving a with block exits through the with statement. | Ned Batchelder | 2021-06-05 | 1 | -7/+106 |
| | | | | This need 3.10.0b3 (not yet released) to fully pass. | ||||
* | test: add a test for annotated assignment | Ned Batchelder | 2021-06-05 | 1 | -0/+15 |
| | | | | | | | | | Every statement-level ast node should be tested. Annotated assignment was missing. Also, we don't need "exec" anymore, that was only for Python 2. And: this is the 1000th test! | ||||
* | refactor: remove some unneeded behavior conditionals | Ned Batchelder | 2021-05-01 | 1 | -7/+0 |
| | |||||
* | refactor: remove code explicitly choosing between py2 and py3 | Ned Batchelder | 2021-05-01 | 1 | -17/+4 |
| | |||||
* | refactor: convert all skipping to pytest skips | Ned Batchelder | 2021-02-07 | 1 | -9/+7 |
| | |||||
* | refactor: remove unittest.assertCountEqual | Ned Batchelder | 2021-02-06 | 1 | -1/+2 |
| | | | | Another step toward removing unittest.TestCase. | ||||
* | refactor: remove reliance on unittest_mixins.StdStreamCapturingMixin | Ned Batchelder | 2021-02-02 | 1 | -2/+3 |
| | | | | This is another step toward removing unittest.TestCase as a base class. | ||||
* | test: keep multi-assert arc diffs working | Ned Batchelder | 2021-01-31 | 1 | -4/+0 |
| | | | | | We don't have a way to do multi-assert in the pytest we're running, so cobble it together ourselves. | ||||
* | style: fix long lines and avoid backslashesnedbat/unittest2pytest | Ned Batchelder | 2021-01-31 | 1 | -4/+4 |
| | |||||
* | style: singleton comparisons should use is | Ned Batchelder | 2021-01-31 | 1 | -1/+1 |
| | | | | | | I guess the original line was wrong, but it would have been nice for unittest2pytest to fix it for me: https://github.com/pytest-dev/unittest2pytest/issues/52 | ||||
* | refactor: unittest2pytest -w tests | Ned Batchelder | 2021-01-31 | 1 | -12/+8 |
| | | | | One step of moving to pure pytest tests. | ||||
* | A better test for 'if not __debug__' | Ned Batchelder | 2021-01-10 | 1 | -11/+13 |
| | |||||
* | PEP 626: constant tests are kept as no-ops | Ned Batchelder | 2021-01-10 | 1 | -28/+113 |
| | | | | | The conditionals are now getting unwieldy, perhaps we can simplify them in the future? | ||||
* | In 3.10, modules always have firstlineno==1 | Ned Batchelder | 2021-01-10 | 1 | -1/+3 |
| | |||||
* | Python 3.10 doesn't compile statments after unconditional jumps. | Ned Batchelder | 2021-01-10 | 1 | -7/+30 |
| | | | | This includes break/continue/return/raise. | ||||
* | More bitbucket->github urls | Ned Batchelder | 2020-08-18 | 1 | -6/+6 |
| | |||||
* | handle decorators for AsyncFunctionDefs. Closes #964 | Kjell Braden | 2020-03-24 | 1 | -0/+17 |
| | |||||
* | Remove a temporary xfail for 3.9a2 | Ned Batchelder | 2020-01-25 | 1 | -8/+1 |
| | |||||
* | Better xfail mechanism | Ned Batchelder | 2020-01-18 | 1 | -15/+8 |
| | |||||
* | bpo39166 is fixed | Ned Batchelder | 2020-01-10 | 1 | -1/+1 |
| | |||||
* | A better name for a thing I will soon delete | Ned Batchelder | 2020-01-04 | 1 | -6/+6 |
| | |||||
* | bpo-39114 will be fixed soon. | Ned Batchelder | 2019-12-31 | 1 | -2/+2 |
| | |||||
* | bpo 39114 broke 3.9, but maybe it's their bug | Ned Batchelder | 2019-12-21 | 1 | -0/+14 |
| | |||||
* | Exit arcs have to be corrected to first lines | Ned Batchelder | 2019-09-21 | 1 | -45/+25 |
| | | | | | | | | | | We've long remapped line numbers to the first line of a multi-line statement. But exit line numbers (negative numbers) were not remapped. This meant we were needlessly chasing weirdnesses in implementations. But the actual results of running coverage always remapped results to the first line, so there's no point in tracking the unmapped line numbers in our tests. | ||||
* | Adapt to optimization tweak in CPython 3.8.0b1 | Ned Batchelder | 2019-06-05 | 1 | -0/+3 |
| | |||||
* | Move more PYVERSION to be PYBEHAVIOR | Ned Batchelder | 2019-03-24 | 1 | -9/+13 |
| | |||||
* | One last decorator test change for 3.8 | Ned Batchelder | 2018-11-11 | 1 | -2/+10 |
| | |||||
* | Python 3.8 will optimize away "while True:" | Ned Batchelder | 2018-11-11 | 1 | -9/+28 |
| |