summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* test: update to latest pytestNed Batchelder2021-05-021-1/+1
|
* build: update to latest pylintgood-metaNed Batchelder2021-05-021-2/+0
|
* refactor: remove a few more version checksNed Batchelder2021-05-026-25/+8
|
* refactor: remove unneeded py2-only gold filesNed Batchelder2021-05-022-161/+0
|
* refactor: pyupgrade --py36-plus tests/**.pyNed Batchelder2021-05-0233-186/+171
|
* refactor: move the remaining backward.py code, no more backward.pyNed Batchelder2021-05-018-13/+9
|
* refactor: remove some unneeded behavior conditionalsNed Batchelder2021-05-012-10/+0
|
* refactor: remove yet more unneeded backward.py shimsNed Batchelder2021-05-011-2/+2
| | | | | | | | Gone are: - PYC_MAGIC_NUMBER - code_object - SimpleNamespace
* refactor: remove more unneeded backward.py shimsNed Batchelder2021-05-013-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 shimsNed Batchelder2021-05-016-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 py3Ned Batchelder2021-05-0111-95/+11
|
* fix: don't warn that dynamic plugins already imported their source files. #1150Ned Batchelder2021-05-012-1/+35
|
* Use current_thread instead of currentThread that was deprecated in Python 3.10Karthikeyan Singaravelan2021-04-171-1/+1
|
* build: make tags like 5.6.1 not coverage-5.6.1Ned Batchelder2021-04-151-1/+1
|
* build: suppress new 3.10 warningsNed Batchelder2021-04-141-0/+11
|
* test: improve zipfile testNed Batchelder2021-04-142-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 testNed Batchelder2021-04-145-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 panelsNed Batchelder2021-04-131-4/+4
|
* fix: restore metacov functioningNed Batchelder2021-04-111-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-excludeNed Batchelder2021-04-112-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 existNed Batchelder2021-04-111-1/+1
|
* debug: label each matcher with its roleNed Batchelder2021-04-111-6/+6
|
* fix: don't measure third-party packagesNed Batchelder2021-04-102-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 worldsNed Batchelder2021-04-101-0/+5
|
* refactor: nice_file can be used as a functionNed Batchelder2021-03-223-18/+19
|
* refactor: make_file can be used as a functionNed Batchelder2021-03-222-39/+46
|
* refactor: simplify temp dir cd codeNed Batchelder2021-03-221-15/+10
|
* refactor: correct a file name: test_mixins.pyNed Batchelder2021-03-111-0/+0
|
* refactor: pull module cleaning into hereNed Batchelder2021-03-114-60/+86
| | | | We don't need unittest_mixins' module cleaner anymore.
* refactor: remove unused test class settingNed Batchelder2021-03-115-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 managerNed Batchelder2021-03-114-4/+20
| | | | We don't need to use the one from unittest_mixins.
* test: simplify how StopEverything is converted to skipnedbat/remove-unittest-testcaseNed Batchelder2021-03-115-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_fileNed Batchelder2021-03-111-0/+56
| | | | These are copied from unittest_mixins, and adapted to pytest.
* refactor: move tests into classesNed Batchelder2021-03-111-54/+63
| | | | Now that we don't inherit from TestCase, pytest can parametrize methods.
* refactor: no need for our own xfail wrapperNed Batchelder2021-03-112-9/+3
|
* test: skip a test on pypyNed Batchelder2021-03-111-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 testsNed Batchelder2021-03-111-1/+1
|
* refactor: use pytest.skip instead of unittest'sNed Batchelder2021-03-112-7/+12
|
* test: reduce use of unittestNed Batchelder2021-03-1110-50/+164
|
* test: have pytest collect test classes uniformlyNed Batchelder2021-03-116-17/+8
|
* refactor: no need for specialized assert_starts_with methodNed Batchelder2021-03-064-18/+2
|
* refactor: replace unittest_mixins.EnvironmentAwareMixin with a pytest adapterNed Batchelder2021-03-042-2/+20
|
* feat: percent_covered_display in the JSON reportnedbat/tweak-metacovNed Batchelder2021-03-021-4/+13
|
* fix: don't report branches to missing lines. #1065Ned Batchelder2021-02-282-6/+6
| | | | | Fixes: #1065 Fixes: #955
* fix: improve an error message. #803Ned Batchelder2021-02-281-2/+4
| | | | Fixes #803.
* fix: HTML report makes room for 4-digit line numbers #1124Ned Batchelder2021-02-271-5/+5
| | | | Fixes: #1124
* test: add tests of report sorting optionsNed Batchelder2021-02-261-0/+10
|
* build: update to latest pylintNed Batchelder2021-02-262-4/+4
|
* test: add a test of missing sections and optionsNed Batchelder2021-02-251-0/+12
|
* refactor: put a test in a more appropriate classNed Batchelder2021-02-251-11/+11
|