Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | 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. | |||||
* | test: simplify how StopEverything is converted to skipnedbat/remove-unittest-testcase | Ned Batchelder | 2021-03-11 | 5 | -64/+12 | |
| | | | | | | The auto-decorating metaclass was interfering with parameterized methods on Python 2.7. But we don't need it anymore anyway, since pytest will let us hook to deal with the exception in a simpler way. | |||||
* | test: add tests of make_file | Ned Batchelder | 2021-03-11 | 1 | -0/+56 | |
| | | | | These are copied from unittest_mixins, and adapted to pytest. | |||||
* | refactor: move tests into classes | Ned Batchelder | 2021-03-11 | 1 | -54/+63 | |
| | | | | Now that we don't inherit from TestCase, pytest can parametrize methods. | |||||
* | refactor: no need for our own xfail wrapper | Ned Batchelder | 2021-03-11 | 2 | -9/+3 | |
| | ||||||
* | test: skip a test on pypy | Ned Batchelder | 2021-03-11 | 1 | -5/+4 | |
| | | | | | | I thought I knew when this passed and when it failed. Now that our tests are not TestCase's, pytest is enforcing the xfails. This passes locally on Mac, but fails in CI on Mac. So skip it. | |||||
* | test: show more information for not-passed tests | Ned Batchelder | 2021-03-11 | 1 | -1/+1 | |
| | ||||||
* | refactor: use pytest.skip instead of unittest's | Ned Batchelder | 2021-03-11 | 2 | -7/+12 | |
| | ||||||
* | test: reduce use of unittest | Ned Batchelder | 2021-03-11 | 10 | -50/+164 | |
| | ||||||
* | test: have pytest collect test classes uniformly | Ned Batchelder | 2021-03-11 | 6 | -17/+8 | |
| | ||||||
* | refactor: no need for specialized assert_starts_with method | Ned Batchelder | 2021-03-06 | 4 | -18/+2 | |
| | ||||||
* | refactor: replace unittest_mixins.EnvironmentAwareMixin with a pytest adapter | Ned Batchelder | 2021-03-04 | 2 | -2/+20 | |
| | ||||||
* | feat: percent_covered_display in the JSON reportnedbat/tweak-metacov | Ned Batchelder | 2021-03-02 | 1 | -4/+13 | |
| | ||||||
* | fix: don't report branches to missing lines. #1065 | Ned Batchelder | 2021-02-28 | 2 | -6/+6 | |
| | | | | | Fixes: #1065 Fixes: #955 | |||||
* | fix: improve an error message. #803 | Ned Batchelder | 2021-02-28 | 1 | -2/+4 | |
| | | | | Fixes #803. | |||||
* | fix: HTML report makes room for 4-digit line numbers #1124 | Ned Batchelder | 2021-02-27 | 1 | -5/+5 | |
| | | | | Fixes: #1124 | |||||
* | test: add tests of report sorting options | Ned Batchelder | 2021-02-26 | 1 | -0/+10 | |
| | ||||||
* | build: update to latest pylint | Ned Batchelder | 2021-02-26 | 2 | -4/+4 | |
| | ||||||
* | test: add a test of missing sections and options | Ned Batchelder | 2021-02-25 | 1 | -0/+12 | |
| | ||||||
* | refactor: put a test in a more appropriate class | Ned Batchelder | 2021-02-25 | 1 | -11/+11 | |
| |