summaryrefslogtreecommitdiff
path: root/tests/test_arcs.py
Commit message (Collapse)AuthorAgeFilesLines
* fix: proper tracing of call/return for Python 3.11.0a4Ned Batchelder2022-01-151-2/+0
| | | | | Version 3.11.0a4 introduced RESUME, so returns and calls are different now. This change also fixes some mishandling of yield-from in previous releases.
* test: skip tests suffering from bpo 46389 (3.11)Ned Batchelder2022-01-151-0/+8
|
* refactor(test): make finally_jumps_back tweaks easier to seeNed Batchelder2022-01-151-39/+22
|
* fix: 3.11 now traces decorator lines as the decorators executeNed Batchelder2022-01-151-8/+22
| | | | See: https://bugs.python.org/issue46234
* style(test): full env.PYVERSION can be used for <= comparisonsNed Batchelder2022-01-101-2/+2
|
* style(test): use a consistent name format for test_bug_XXX testsNed Batchelder2022-01-101-3/+3
|
* refactor(test): make behavior tweaks easier to seeNed Batchelder2022-01-101-30/+23
|
* test: skip a test on 3.11 while bpo46225 is worked outNed Batchelder2022-01-031-0/+5
|
* test(fix): skip tests that trip a specific Mac 3.9 eventlet bugNed Batchelder2021-11-241-0/+10
|
* test(refactor): if two skips apply, put the more significant reason closer ↵Ned Batchelder2021-11-211-1/+1
| | | | to the def
* fix(test): make .pth files once per sessionNed Batchelder2021-11-211-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-stringsNed Batchelder2021-11-111-2/+2
|
* fix: CPython 3.11 support. #1241Ned Batchelder2021-11-101-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.8Ned Batchelder2021-10-251-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_objectNed Batchelder2021-10-141-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 toNed Batchelder2021-10-131-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 concatenationNed Batchelder2021-10-101-23/+21
|
* test: another test suggested by Mark ShannonNed Batchelder2021-08-311-0/+15
|
* fix: missing exceptions through with statements in 3.10 aren't considered ↵Ned Batchelder2021-08-141-0/+56
| | | | missing branches. #1205
* refactor: move a test helper to CoverageTestNed Batchelder2021-08-141-6/+2
|
* test: add a test for #1205 bpo-44840Ned Batchelder2021-08-091-1/+27
|
* fix: match/case will trace the default case lineNed Batchelder2021-07-271-1/+1
|
* test: add a test for bpo 44622, #1176Ned Batchelder2021-07-191-0/+24
|
* test: add tests of #1175Ned Batchelder2021-07-191-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 reasonsNed Batchelder2021-07-131-5/+2
|
* test: skip a test that won't run on 3.6Ned Batchelder2021-07-131-0/+1
|
* test: add a test for bug #1158Ned Batchelder2021-07-131-0/+25
|
* test: 3.10.0b4 traces match/case incorrectlyNed Batchelder2021-07-121-1/+5
| | | | See: https://bugs.python.org/issue44600
* test: add a test for #1184.Ned Batchelder2021-07-081-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 statementsNed Batchelder2021-06-061-0/+51
|
* fix: in Python 3.10, leaving a with block exits through the with statement.Ned Batchelder2021-06-051-7/+106
| | | | This need 3.10.0b3 (not yet released) to fully pass.
* test: add a test for annotated assignmentNed Batchelder2021-06-051-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 conditionalsNed Batchelder2021-05-011-7/+0
|
* refactor: remove code explicitly choosing between py2 and py3Ned Batchelder2021-05-011-17/+4
|
* refactor: convert all skipping to pytest skipsNed Batchelder2021-02-071-9/+7
|
* refactor: remove unittest.assertCountEqualNed Batchelder2021-02-061-1/+2
| | | | Another step toward removing unittest.TestCase.
* refactor: remove reliance on unittest_mixins.StdStreamCapturingMixinNed Batchelder2021-02-021-2/+3
| | | | This is another step toward removing unittest.TestCase as a base class.
* test: keep multi-assert arc diffs workingNed Batchelder2021-01-311-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/unittest2pytestNed Batchelder2021-01-311-4/+4
|
* style: singleton comparisons should use isNed Batchelder2021-01-311-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 testsNed Batchelder2021-01-311-12/+8
| | | | One step of moving to pure pytest tests.
* A better test for 'if not __debug__'Ned Batchelder2021-01-101-11/+13
|
* PEP 626: constant tests are kept as no-opsNed Batchelder2021-01-101-28/+113
| | | | | The conditionals are now getting unwieldy, perhaps we can simplify them in the future?
* In 3.10, modules always have firstlineno==1Ned Batchelder2021-01-101-1/+3
|
* Python 3.10 doesn't compile statments after unconditional jumps.Ned Batchelder2021-01-101-7/+30
| | | | This includes break/continue/return/raise.
* More bitbucket->github urlsNed Batchelder2020-08-181-6/+6
|
* handle decorators for AsyncFunctionDefs. Closes #964Kjell Braden2020-03-241-0/+17
|
* Remove a temporary xfail for 3.9a2Ned Batchelder2020-01-251-8/+1
|
* Better xfail mechanismNed Batchelder2020-01-181-15/+8
|
* bpo39166 is fixedNed Batchelder2020-01-101-1/+1
|