summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* refactor: simplify a one-iteration loopNed Batchelder2021-02-251-4/+3
|
* test: oops, accidentally always skipped this testNed Batchelder2021-02-241-1/+1
|
* test: add tests of the failure asserts from check_coverageNed Batchelder2021-02-222-3/+54
| | | | This brings the coverage of tests/coveragetest.py to 100%.
* refactor: slightly better coverage in coveragetestNed Batchelder2021-02-212-4/+4
|
* refactor: convert all skipping to pytest skipsNed Batchelder2021-02-0714-107/+53
|
* refactor: a better way to skip these testsNed Batchelder2021-02-071-5/+1
|
* refactor: make all coverage.env uses uniformNed Batchelder2021-02-071-2/+2
|
* test: metacov is always xdistNed Batchelder2021-02-071-1/+1
|
* test: these tests can run during metacovNed Batchelder2021-02-071-1/+0
| | | | I forget why I thought they couldn't run during meta-coverage.
* test: more-uniform skipping of test during metacovNed Batchelder2021-02-072-25/+15
|
* refactor: remove unittest.assertCountEqualNed Batchelder2021-02-0610-37/+56
| | | | Another step toward removing unittest.TestCase.
* refactor: remove reliance on unittest_mixins.StdStreamCapturingMixinNed Batchelder2021-02-026-26/+62
| | | | This is another step toward removing unittest.TestCase as a base class.
* refactor: move test mixins to their own fileNed Batchelder2021-02-024-32/+46
|
* test: keep multi-assert arc diffs workingNed Batchelder2021-01-312-27/+23
| | | | | We don't have a way to do multi-assert in the pytest we're running, so cobble it together ourselves.
* test: configure pytest assertion rewriting in coveragetest.pyNed Batchelder2021-01-311-0/+4
|
* style: fix long lines and avoid backslashesnedbat/unittest2pytestNed Batchelder2021-01-3120-167/+179
|
* style: correct placement of auto-added pytest importsNed Batchelder2021-01-3114-14/+21
|
* style: singleton comparisons should use isNed Batchelder2021-01-317-16/+16
| | | | | | 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: mark an internal methodNed Batchelder2021-01-311-4/+4
|
* test: adapt to pytest assertion messagesNed Batchelder2021-01-312-10/+10
| | | | | | | | Bare "assert" statements don't produce the same assertion message as self.assertEqual did: they don't include the two values compared. For some of our own asserts, add back the detailed message. For some checks of asserts, it's fine that the values are missing because the longer messsage includes the information.
* test: fix unittest2pytest brokennessNed Batchelder2021-01-312-17/+21
| | | | | | | unittest2pytest created syntax errors, reported here: https://github.com/pytest-dev/unittest2pytest/issues/51 This commit fixes them back.
* refactor: unittest2pytest -w testsNed Batchelder2021-01-3131-1294/+1165
| | | | One step of moving to pure pytest tests.
* Add combine --keep (#1110)Éric Larivière2021-01-303-6/+28
| | | | | | | | | | | * Add combine --keep Related to https://github.com/nedbat/coveragepy/issues/1108 * Fix unit tests * Fix line too long * Fix line too long
* Simplify the testing of the toml extra, fixing #1084Ned Batchelder2021-01-183-14/+34
|
* fix: combine aliases on windows base dirs (ie: ``X:\``) (fixes: #577)Valentin Lab2021-01-171-0/+14
| | | | Signed-off-by: Valentin Lab <valentin.lab@kalysto.org>
* skip_covered and skip_empty for HTML. #1090Ned Batchelder2021-01-101-19/+33
|
* Use the modern way to load modules by file name.Ned Batchelder2021-01-101-4/+15
| | | | | | | Python 3.10 finally got super-noisy about load_module, which has been deprecated since 3.4! https://docs.python.org/3/library/importlib.html#importlib.abc.Loader.load_module
* Fix a test to be usable with PEP626Ned Batchelder2021-01-101-33/+35
| | | | | | | In the old code, the return and raise were unreachable, so Python 3.10 compiled them away. This meant the return and raise messages weren't in the missing arc fragments. The new code has a path to the return and raise.
* Need new gold files for pep626 partial branch HTML reportNed Batchelder2021-01-103-16/+210
|
* Update the support files for HTML gold filesNed Batchelder2021-01-102-54/+226
|
* A better test for 'if not __debug__'Ned Batchelder2021-01-102-13/+14
|
* PEP 626: Docstring-only functions changed againNed Batchelder2021-01-101-1/+2
|
* PEP 626: constant tests are kept as no-opsNed Batchelder2021-01-103-33/+129
| | | | | The conditionals are now getting unwieldy, perhaps we can simplify them in the future?
* Clean up the platform constants in env.pyNed Batchelder2021-01-101-1/+1
|
* In 3.10, modules always have firstlineno==1Ned Batchelder2021-01-102-1/+8
|
* Python 3.10 doesn't compile statments after unconditional jumps.Ned Batchelder2021-01-102-89/+116
| | | | 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
|
* Always output TOTAL line.Judson Neer2021-01-065-33/+70
|
* Use set literalsNed Batchelder2021-01-036-17/+17
|
* This test doesn't work on Mac either.Ned Batchelder2021-01-021-1/+1
|
* Updated gold html filesNed Batchelder2020-12-0538-79/+117
|
* This test is picky about platformsNed Batchelder2020-11-281-1/+1
|
* Fix tests for GitHub windows platformNed Batchelder2020-11-284-9/+11
| | | | | | | | | | | | | | The tests were failing because of differences in file paths. It was comparing: C:\Users\runneradmin\AppData\... to: C:\Users\RUNNER~1\AppData\... and failing. These changes normalize the file paths so the comparisons work properly.
* PyPy 3.7 doesn't act exactly like CPython 3.7Ned Batchelder2020-10-102-2/+2
|
* Python 3.10Ned Batchelder2020-10-101-1/+5
|
* If a plugin is disabled, don't try to record its file tracers. #1011Ned Batchelder2020-09-131-0/+32
|
* Fix a missed exception handling for bad pluginsNed Batchelder2020-09-131-0/+22
|
* ambigious -> ambiguousNed Batchelder2020-09-125-10/+10
|
* Docs and cleanup for source_pkgsNed Batchelder2020-09-124-7/+6
|