Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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 |
| | |||||
* | test: update to latest pytest | Ned Batchelder | 2021-05-02 | 1 | -1/+1 |
| | |||||
* | build: update to latest pylintgood-meta | Ned Batchelder | 2021-05-02 | 1 | -2/+0 |
| | |||||
* | refactor: remove a few more version checks | Ned Batchelder | 2021-05-02 | 6 | -25/+8 |
| | |||||
* | refactor: remove unneeded py2-only gold files | Ned Batchelder | 2021-05-02 | 2 | -161/+0 |
| | |||||
* | refactor: pyupgrade --py36-plus tests/**.py | Ned Batchelder | 2021-05-02 | 33 | -186/+171 |
| | |||||
* | refactor: move the remaining backward.py code, no more backward.py | Ned Batchelder | 2021-05-01 | 8 | -13/+9 |
| | |||||
* | refactor: remove some unneeded behavior conditionals | Ned Batchelder | 2021-05-01 | 2 | -10/+0 |
| | |||||
* | refactor: remove yet more unneeded backward.py shims | Ned Batchelder | 2021-05-01 | 1 | -2/+2 |
| | | | | | | | | Gone are: - PYC_MAGIC_NUMBER - code_object - SimpleNamespace | ||||
* | refactor: remove more unneeded backward.py shims | Ned Batchelder | 2021-05-01 | 3 | -28/+2 |
| | | | | | | | | | | | | | | Gone are: - iitems - litems - iternext - to_bytes - to_string - binary_bytes - byte_to_int - bytes_to_ints - BUILTINS | ||||
* | refactor: remove unneeded backward.py shims | Ned Batchelder | 2021-05-01 | 6 | -22/+24 |
| | | | | | | | | | | | | | | | Removed were: - StringIO - configparser - string_class - unicode_class - range - zip_longest - get_thread_id - path_types - shlex_quote - reprlib | ||||
* | refactor: remove code explicitly choosing between py2 and py3 | Ned Batchelder | 2021-05-01 | 11 | -95/+11 |
| | |||||
* | fix: don't warn that dynamic plugins already imported their source files. #1150 | Ned Batchelder | 2021-05-01 | 2 | -1/+35 |
| | |||||
* | Use current_thread instead of currentThread that was deprecated in Python 3.10 | Karthikeyan Singaravelan | 2021-04-17 | 1 | -1/+1 |
| | |||||
* | build: make tags like 5.6.1 not coverage-5.6.1 | Ned Batchelder | 2021-04-15 | 1 | -1/+1 |
| | |||||
* | build: suppress new 3.10 warnings | Ned Batchelder | 2021-04-14 | 1 | -0/+11 |
| | |||||
* | test: improve zipfile test | Ned Batchelder | 2021-04-14 | 2 | -10/+14 |
| | | | | | | | Before this commit, the GetZipBytesTest.test_get_encoded_zip_files test was flaky on Python 3.10.0a7. Since I had just added new files to the common zip file, I tried splitting the newly added stuff into its own file, and that seemed to fix the problem. | ||||
* | test: remove the .egg test | Ned Batchelder | 2021-04-14 | 5 | -27/+19 |
| | | | | | | People don't use .egg much anymore, distutils is showing deprecation warnings, and coverage.py only deals with them the same way it deals with .zip files, so let's just rely on a .zip test to cover that. | ||||
* | fix: correct slight mis-layout of the hotkey panels | Ned Batchelder | 2021-04-13 | 1 | -4/+4 |
| | |||||
* | fix: restore metacov functioning | Ned Batchelder | 2021-04-11 | 1 | -1/+1 |
| | | | | | | | The check for coverage files inside the --source check disables our metacoverage. Removing it means that coverage files will still not be measured, but the reason will be given as "is third-party" rather than "is part of coverage.py," which is a small price to pay. | ||||
* | fix: don't measure third-party scriptsnedbat/bin-exclude | Ned Batchelder | 2021-04-11 | 2 | -45/+112 |
| | | | | | | This finishes the last bit of #905 Also includes tighter logging of the reason for not tracing modules. | ||||
* | test: don't complain if an environment variable we don't want doesn't exist | Ned Batchelder | 2021-04-11 | 1 | -1/+1 |
| | |||||
* | debug: label each matcher with its role | Ned Batchelder | 2021-04-11 | 1 | -6/+6 |
| | |||||
* | fix: don't measure third-party packages | Ned Batchelder | 2021-04-10 | 2 | -3/+102 |
| | | | | | | | | | | | | Avoid measuring code located where third-party packages get installed. We have to take care to measure --source code even if it is installed in a third-party location. This also fixes #905, coverage generating warnings about coverage being imported when it will be measured. https://github.com/nedbat/coveragepy/issues/876 https://github.com/nedbat/coveragepy/issues/905 | ||||
* | fix: make TreeMatcher right for case-sensitive worlds | Ned Batchelder | 2021-04-10 | 1 | -0/+5 |
| | |||||
* | refactor: nice_file can be used as a function | Ned Batchelder | 2021-03-22 | 3 | -18/+19 |
| | |||||
* | refactor: make_file can be used as a function | Ned Batchelder | 2021-03-22 | 2 | -39/+46 |
| | |||||
* | refactor: simplify temp dir cd code | Ned Batchelder | 2021-03-22 | 1 | -15/+10 |
| | |||||
* | refactor: correct a file name: test_mixins.py | Ned Batchelder | 2021-03-11 | 1 | -0/+0 |
| | |||||
* | refactor: pull module cleaning into here | Ned Batchelder | 2021-03-11 | 4 | -60/+86 |
| | | | | We don't need unittest_mixins' module cleaner anymore. | ||||
* | refactor: remove unused test class setting | Ned Batchelder | 2021-03-11 | 5 | -18/+0 |
| | | | | | | | | | unittest_mixins would check that files got created if a test made a temporary directory, so that we could trim down making temp dirs needlessly. But we don't use unittest_mixins any more, so this setting does nothing. Remove it. | ||||
* | refactor: our own change_dir context manager | Ned Batchelder | 2021-03-11 | 4 | -4/+20 |
| | | | | We don't need to use the one from unittest_mixins. |