summaryrefslogtreecommitdiff
path: root/tests/test_arcs.py
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* A better name for a thing I will soon deleteNed Batchelder2020-01-041-6/+6
|
* bpo-39114 will be fixed soon.Ned Batchelder2019-12-311-2/+2
|
* bpo 39114 broke 3.9, but maybe it's their bugNed Batchelder2019-12-211-0/+14
|
* Exit arcs have to be corrected to first linesNed Batchelder2019-09-211-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.0b1Ned Batchelder2019-06-051-0/+3
|
* Move more PYVERSION to be PYBEHAVIORNed Batchelder2019-03-241-9/+13
|
* One last decorator test change for 3.8Ned Batchelder2018-11-111-2/+10
|
* Python 3.8 will optimize away "while True:"Ned Batchelder2018-11-111-9/+28
|
* Use a new event loopNed Batchelder2018-10-241-2/+2
|
* Finally jumps back to exiting linesNed Batchelder2018-10-061-17/+53
| | | | | | In Python 3.8, when a finally clause is run because a line in the try block is exiting the block, the exiting line is visited again after the finally block.
* Update NOTICE link to GitHub.Ned Batchelder2018-06-241-1/+1
|
* No more support for 2.6 or 3.3Ned Batchelder2018-05-051-4/+0
|
* Fine-tune the 3.7 decisionsNed Batchelder2018-01-131-1/+1
|
* Python 3.7 optimizes away 'not __debug__'Ned Batchelder2018-01-101-3/+9
|
* More-precise no-coverage pragmasNed Batchelder2017-01-191-2/+2
|
* No test failures on JythonNed Batchelder2017-01-181-0/+7
| | | | One or two of these are questionable accommodations, but there are no failures.
* A few more lines coveredNed Batchelder2017-01-171-3/+4
|
* Properly handle if-statements optimized away. #522Ned Batchelder2017-01-161-15/+96
|
* A cleaner way to exclude Jython concerns from meta-coverage.Ned Batchelder2017-01-161-1/+1
|
* More pragmas for test skipsNed Batchelder2017-01-141-2/+2
|
* Forgot a bunch of jython coverage pragmasNed Batchelder2017-01-141-1/+1
|
* More Jython test fixes/skipsNed Batchelder2017-01-141-0/+3
|
* 2.6 and 2.7 are not different wrt constants in while loopsNed Batchelder2016-12-241-11/+5
|
* Move the test program into the testNed Batchelder2016-12-241-7/+10
|
* also use AST for while constants in python-2.7 #502loic@dachary.org2016-12-151-2/+19
| | | | | | | | | | | The node.id is set to False, True or None is python-2.7: there is no reason to only check for it with python-3. It is more reliable than using the DEFAULT_PARTIAL_ALWAYS regexps on source lines. close #502 --HG-- branch : issue-502-7
* Bug #496 wasn't about the single-line continue, just the constant while.Ned Batchelder2016-12-181-3/+4
|
* Fix #496, while-true loop with a continue.Ned Batchelder2016-12-181-0/+16
|
* Clean up #493 fixNed Batchelder2016-12-181-24/+9
|
* finally happens before return in a try #493loic@dachary.org2016-12-181-0/+18
| | | | | | | | | | | | | | | | | | | | | In a try block such as: if expr: try: return finally print pass the print happens before the return and cannot be followed by pass. The general case is that when the body/else/handlers in a try block all have return, break etc., the code behind finally: has no arc to the statement following the try block. close #493 --HG-- branch : issue-493-2
* Async protocol changed in 3.5.2. Remove a deprecation warningNed Batchelder2016-11-271-1/+1
|
* Use standard skipTest, which unittest-mixins will override.Ned Batchelder2016-06-121-5/+5
|
* Better descriptions of missing one-line executables. Part of #475Ned Batchelder2016-03-271-0/+30
|
* Entry arcs now use the negative first line of the code object instead of -1.Ned Batchelder2016-03-021-45/+45
|
* Better branch-missed messages for lambdas.Ned Batchelder2016-02-251-0/+20
|