Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | test: another test suggested by Mark Shannon | Ned Batchelder | 2021-08-31 | 1 | -0/+15 | |
| | ||||||
* | refactor: use sets to collect data | Ned Batchelder | 2021-08-15 | 1 | -34/+32 | |
| | | | | | | | Coverage.py predates sets as a built-in data structure, so the file data collection has long been dicts with None as the values. Sets are available to us now (since Python 2.4 in 2004, which coverage.py dropped support for in 2014!), we use sets. | |||||
* | 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 | 2 | -6/+10 | |
| | ||||||
* | test: a part-covered comprehension | Ned Batchelder | 2021-08-09 | 2 | -4/+3 | |
| | | | | | The comprehension would only completely finish (->exit) if the assert was going to fail. So we expect it to not finish. | |||||
* | test: simplify pyc logic | Ned Batchelder | 2021-08-09 | 1 | -9/+2 | |
| | | | | | | The old pycache_prefix logic was because we would run tests in Docker containers, and they went faster if we set PYTHONCACHEPREFIX. But we don't do that anymore, so we can use simpler code. | |||||
* | test: exclude one last line in test_api.py | Ned Batchelder | 2021-08-09 | 1 | -1/+1 | |
| | ||||||
* | test: add a test for #1205 bpo-44840 | Ned Batchelder | 2021-08-09 | 1 | -1/+27 | |
| | ||||||
* | feat: mention skipped file counts in the HTML report. #1163 | Ned Batchelder | 2021-08-06 | 1 | -0/+4 | |
| | ||||||
* | test: add a test of the one thing uncovered in results.py | Ned Batchelder | 2021-08-05 | 1 | -0/+8 | |
| | ||||||
* | feat: `coverage combine` now prints messages naming the files being ↵ | Ned Batchelder | 2021-08-05 | 2 | -12/+22 | |
| | | | | combined. #1105 (#1208) | |||||
* | feat: HTML report now says where the report is. #1195 (#1207) | Ned Batchelder | 2021-08-05 | 3 | -4/+5 | |
| | ||||||
* | feat: unrecognized options are now a warning rather than error. #1035 (#1206) | Ned Batchelder | 2021-08-05 | 1 | -6/+6 | |
| | | | | Because they are warnings issued while parsing the configuration file, it's not possible to suppress them with the coverage configuration. | |||||
* | style: fix typos discovered by codespell (#1197) | Christian Clauss | 2021-08-01 | 3 | -3/+3 | |
| | | | | | | | | | | | python3 -m pip install codespell codespell --ignore-words-list="ba,cant,datas,hart,linke,ned,nin,overthere,upto" --skip="*.js" * Fix typos discovered by codespell * datas * intgers ==> integers | |||||
* | refactor: convert %-strings to f-strings | Ned Batchelder | 2021-07-28 | 1 | -2/+2 | |
| | ||||||
* | fix: match/case will trace the default case line | Ned Batchelder | 2021-07-27 | 1 | -1/+1 | |
| | ||||||
* | test: don't report this function in pytest tracebacks | Ned Batchelder | 2021-07-20 | 1 | -0/+1 | |
| | ||||||
* | test: check the plugin warnings differently | Ned Batchelder | 2021-07-20 | 1 | -1/+2 | |
| | | | | | | | | The old way, extra warnings that we don't care about could creep in. For some reason, disabling PyContracts causes "imp" DeprecationWarnings to appear in the list. Rather than assert there's only one warning, assert there's only one from us. | |||||
* | 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. | |||||
* | build: update pylint and remove some unneeded warning suppression | Ned Batchelder | 2021-07-18 | 1 | -15/+0 | |
| | ||||||
* | test: mark some only-failure code in the recent goldtest changes | Ned Batchelder | 2021-07-18 | 1 | -2/+2 | |
| | ||||||
* | test: change how we keep mismatched actual output | Ned Batchelder | 2021-07-15 | 5 | -17/+21 | |
| | | | | | | | | | | | | Now when a goldtest has a failure, the actual mismatched output will be written to the tests/actual directory. Along the way, I removed some obsolete settings which were only used by unittest and unittest_mixins, which we no longer use: - COVERAGE_KEEP_TMP - COVERAGE_ENV_ID - $TMPDIR/coverage_test | |||||
* | fix: generate flat file names differently | Ned Batchelder | 2021-07-15 | 7 | -15/+28 | |
| | | | | | | | | Fixes a few unusual issues with reports: - #580: HTML report generation fails on too long path - #584: File collisions in coverage report html - #1167: Remove leading underscore in coverage html | |||||
* | 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 | |
| | ||||||
* | fix: use a modern hash when fingerprinting. #1189 | Ned Batchelder | 2021-07-13 | 1 | -1/+1 | |
| | ||||||
* | test: add a test for bug #1158 | Ned Batchelder | 2021-07-13 | 1 | -0/+25 | |
| | ||||||
* | Support TOML v1.0.0 syntax in `pyproject.toml` (#1186) | Thomas Grainger | 2021-07-13 | 3 | -33/+30 | |
| | | | | | | | | | | | | | | | | | * Support TOML v1.0.0 syntax in `pyproject.toml` fixes #1180 Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com> * fix toml meta test * use pytest.mark.parametrize to narrow test failure * Update tests/test_config.py Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com> Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com> | |||||
* | 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: soft keywords are shown in bold in the HTML report | Ned Batchelder | 2021-06-06 | 1 | -0/+36 | |
| | | | | | | | | The match and case soft keywords are shown in bold when they are keywords, and not when they are not. The underscore soft keyword is ignored, because it is harder to get right, and because it doesn't look that much different in bold anyway. | |||||
* | feat: add support for Python 3.10 match-case statements | Ned Batchelder | 2021-06-06 | 2 | -0/+69 | |
| | ||||||
* | 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! | |||||
* | test: hide check_coverage source in pytest tracebacks | Ned Batchelder | 2021-06-04 | 1 | -0/+2 | |
| | | | | | | | The code for the helper is uninteresting and long, and only makes it harder to see what is going wrong. Hide it. https://docs.pytest.org/en/latest/example/simple.html#writing-well-integrated-assertion-helpers | |||||
* | fix: use more explicit names for some debug information | Ned Batchelder | 2021-06-02 | 1 | -1/+1 | |
| | ||||||
* | refactor: remove globals from Numbers | Ned Batchelder | 2021-06-01 | 1 | -28/+13 | |
| | ||||||
* | fix: --fail-under=100 could report 100 is less than 100. | Ned Batchelder | 2021-05-31 | 2 | -0/+28 | |
| | | | | | | | Use the same rounding rules for the fail-under message that are used for totals everywhere else, so that it won't say: total of 100 is less than fail-under=100 | |||||
* | test: better checking for CoverageWarnings | Ned Batchelder | 2021-05-31 | 2 | -3/+3 | |
| | | | | | On Python 3.10, we were getting other warnings mixed into the warnings the tests were looking for. This change lets us only look at the CoverageWarnings. | |||||
* | test: simplify run_command output handling | Ned Batchelder | 2021-05-30 | 1 | -5/+3 | |
| | | | | | The type-check is left over from Python 2 compatibility, we don't need it anymore. | |||||
* | build: mark a line as not covered | Ned Batchelder | 2021-05-30 | 1 | -1/+1 | |
| | ||||||
* | build: mark a few lines as not covered | Ned Batchelder | 2021-05-30 | 1 | -2/+2 | |
| | ||||||
* | feat: warnings are now real warnings | Ned Batchelder | 2021-05-30 | 9 | -75/+166 | |
| | | | | | | This makes coverage warnings visible when running test suites under pytest. But it also means some uninteresting warnings would show up in our own test suite, so we had to catch or suppress those. | |||||
* | fix: Python 3.8.10 changed how __file__ is reported when running directories | Ned Batchelder | 2021-05-11 | 1 | -1/+1 | |
| | ||||||
* | test: traced file names seem to be absolute now? #1161 | Ned Batchelder | 2021-05-08 | 2 | -9/+13 | |
| | | | | | This was changed in 3.10.0b1 and 3.9.5. Seems like a strange change to throw into 3.9.5, but there it is. Fixes #1161. | |||||
* | fix: make data collection operations thread-safe | Ned Batchelder | 2021-05-03 | 1 | -1/+6 | |
| | ||||||
* | test: remove a changed test that wasn't supposed to be part of bb73791b | Ned Batchelder | 2021-05-03 | 1 | -6/+1 | |
| | ||||||
* | refactor: convert more %-formatting to f-strings | Ned Batchelder | 2021-05-02 | 1 | -1/+6 | |
| | ||||||
* | refactor: move exceptions to their own module | Ned Batchelder | 2021-05-02 | 14 | -16/+19 | |
| |