Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | style: use good style for annotated defaults parameters | Ned Batchelder | 2023-01-05 | 1 | -24/+24 |
| | |||||
* | mypy: Iterator is better than Generator | Ned Batchelder | 2023-01-05 | 1 | -2/+2 |
| | |||||
* | mypy: use __future__ uniformly in checked files | Ned Batchelder | 2023-01-05 | 1 | -0/+2 |
| | |||||
* | mypy: test_coverage.py, test_data.py | Ned Batchelder | 2023-01-04 | 1 | -3/+3 |
| | |||||
* | mypy: summary.py, test_summary.py, tests/coveragetest.py | Ned Batchelder | 2023-01-04 | 1 | -36/+86 |
| | |||||
* | mypy: add cmdline.py and test_cmdline.py | Ned Batchelder | 2022-12-31 | 1 | -2/+2 |
| | |||||
* | refactor: removed mentions of Jython and IronPython | Ned Batchelder | 2022-12-30 | 1 | -17/+3 |
| | |||||
* | feat: implicit path mapping during reporting. #1212 | Ned Batchelder | 2022-11-27 | 1 | -1/+4 |
| | |||||
* | test: a utility print for when reporting tests fail | Ned Batchelder | 2022-11-02 | 1 | -0/+1 |
| | |||||
* | build: Build and test tweaks to help with cross-compilation | Steve Dower | 2022-04-30 | 1 | -1/+6 |
| | | | | | | | | | | | | | | | For context, I've been testing whether a range of popular libraries are going to work on Windows ARM64. (This requires compiling on a regular x64 machine and then copying the wheel to an ARM64 one for testing.) The good news is, coverage seems to be just fine without any changes. However, because of a few assumptions in the test suite about always testing an in-place build, I had to make some tweaks to be able to run tests. My proposed tweaks should be fine for current uses, but they also allow the following: * support `SETUPTOOLS_EXT_SUFFIX` when building to override the pyd tag on Windows (used with `setup.py build_ext -L <path>` to point at [pythonarm64](https://www.nuget.org/packages/pythonarm64/) import libraries to do the cross-compile) * allow `COVERAGE_INSTALL_ARGS` to override how the tests install coverage into a venv (allows to point at a wheel rather than rebuilding from the sources) * allow `python igor.py remove_extension --from-install` to delete the extension module from `site-packages` rather than only the source tree * other changes to allow removing the `coverage` directory from the source tree before tests so that the installed copy will be used instead. I've tested these on my own Windows ARM64 machine, though unfortunately there aren't any available on CI services yet. If you wanted to start releasing (preview) wheels for win-arm64 you can, but there's no support (yet) in `cibuildwheel` or `build` to do it (because those tools don't really have a concept of cross-compilation for Windows at all... yet ;-) ). For the linter | ||||
* | refactor(test): make_data_file is a helper for making data files | Ned Batchelder | 2021-11-20 | 1 | -0/+10 |
| | |||||
* | style: convert more string formatting to f-strings | Ned Batchelder | 2021-11-11 | 1 | -4/+2 |
| | |||||
* | refactor(test): use the expected name for initializing tests. | Ned Batchelder | 2021-11-07 | 1 | -4/+4 |
| | | | | | | | | | Originally I used setup_test because something went wrong when I used setUp. I wrote https://github.com/pytest-dev/pytest/issues/8424 about it. There they say to use `-p no:nose` to disable nose interpretation. But now I simply went back to setUp, and all seems well? Not sure what changed, but using the expected name is better. | ||||
* | test: we don't need two sys.path restorers | Ned Batchelder | 2021-10-14 | 1 | -2/+2 |
| | |||||
* | test: don't use subprocesses where we don't have to | Ned Batchelder | 2021-10-13 | 1 | -0/+11 |
| | | | | | | When running tests with `-n 0`, this shaves 4 seconds off the run time. When running the complete test suite with xdist, it takes 2 seconds longer!? | ||||
* | refactor: move a test helper to CoverageTest | Ned Batchelder | 2021-08-14 | 1 | -0/+8 |
| | |||||
* | test: don't report this function in pytest tracebacks | Ned Batchelder | 2021-07-20 | 1 | -0/+1 |
| | |||||
* | test: change how we keep mismatched actual output | Ned Batchelder | 2021-07-15 | 1 | -9/+0 |
| | | | | | | | | | | | | 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 | ||||
* | 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 | ||||
* | refactor: pyupgrade --py36-plus tests/**.py | Ned Batchelder | 2021-05-02 | 1 | -13/+13 |
| | |||||
* | refactor: move the remaining backward.py code, no more backward.py | Ned Batchelder | 2021-05-01 | 1 | -1/+1 |
| | |||||
* | refactor: remove unneeded backward.py shims | Ned Batchelder | 2021-05-01 | 1 | -4/+5 |
| | | | | | | | | | | | | | | | Removed were: - StringIO - configparser - string_class - unicode_class - range - zip_longest - get_thread_id - path_types - shlex_quote - reprlib | ||||
* | refactor: nice_file can be used as a function | Ned Batchelder | 2021-03-22 | 1 | -13/+8 |
| | |||||
* | refactor: pull module cleaning into here | Ned Batchelder | 2021-03-11 | 1 | -13/+3 |
| | | | | We don't need unittest_mixins' module cleaner anymore. | ||||
* | test: simplify how StopEverything is converted to skipnedbat/remove-unittest-testcase | Ned Batchelder | 2021-03-11 | 1 | -5/+1 |
| | | | | | | 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. | ||||
* | refactor: no need for our own xfail wrapper | Ned Batchelder | 2021-03-11 | 1 | -5/+0 |
| | |||||
* | test: reduce use of unittest | Ned Batchelder | 2021-03-11 | 1 | -14/+16 |
| | |||||
* | refactor: no need for specialized assert_starts_with method | Ned Batchelder | 2021-03-06 | 1 | -5/+0 |
| | |||||
* | refactor: replace unittest_mixins.EnvironmentAwareMixin with a pytest adapter | Ned Batchelder | 2021-03-04 | 1 | -2/+2 |
| | |||||
* | test: add tests of the failure asserts from check_coverage | Ned Batchelder | 2021-02-22 | 1 | -3/+3 |
| | | | | This brings the coverage of tests/coveragetest.py to 100%. | ||||
* | refactor: slightly better coverage in coveragetest | Ned Batchelder | 2021-02-21 | 1 | -3/+3 |
| | |||||
* | refactor: convert all skipping to pytest skips | Ned Batchelder | 2021-02-07 | 1 | -1/+1 |
| | |||||
* | refactor: remove unittest.assertCountEqual | Ned Batchelder | 2021-02-06 | 1 | -4/+4 |
| | | | | Another step toward removing unittest.TestCase. | ||||
* | refactor: remove reliance on unittest_mixins.StdStreamCapturingMixin | Ned Batchelder | 2021-02-02 | 1 | -2/+2 |
| | | | | This is another step toward removing unittest.TestCase as a base class. | ||||
* | refactor: move test mixins to their own file | Ned Batchelder | 2021-02-02 | 1 | -29/+3 |
| | |||||
* | test: keep multi-assert arc diffs working | Ned Batchelder | 2021-01-31 | 1 | -23/+23 |
| | | | | | We don't have a way to do multi-assert in the pytest we're running, so cobble it together ourselves. | ||||
* | style: fix long lines and avoid backslashesnedbat/unittest2pytest | Ned Batchelder | 2021-01-31 | 1 | -1/+2 |
| | |||||
* | refactor: mark an internal method | Ned Batchelder | 2021-01-31 | 1 | -4/+4 |
| | |||||
* | test: adapt to pytest assertion messages | Ned Batchelder | 2021-01-31 | 1 | -4/+4 |
| | | | | | | | | 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. | ||||
* | refactor: unittest2pytest -w tests | Ned Batchelder | 2021-01-31 | 1 | -12/+12 |
| | | | | One step of moving to pure pytest tests. | ||||
* | PEP 626: constant tests are kept as no-ops | Ned Batchelder | 2021-01-10 | 1 | -1/+1 |
| | | | | | The conditionals are now getting unwieldy, perhaps we can simplify them in the future? | ||||
* | In 3.10, modules always have firstlineno==1 | Ned Batchelder | 2021-01-10 | 1 | -0/+5 |
| | |||||
* | Explain a mystery | Ned Batchelder | 2020-09-02 | 1 | -0/+4 |
| | |||||
* | Better xfail mechanism | Ned Batchelder | 2020-01-18 | 1 | -4/+5 |
| | |||||
* | Move test helpers to tests.helpers | Ned Batchelder | 2019-12-31 | 1 | -1/+2 |
| | |||||
* | Easier to decipher arcz output | Ned Batchelder | 2019-12-31 | 1 | -3/+3 |
| | |||||
* | Warnings can be marked to only display once. | Ned Batchelder | 2019-12-27 | 1 | -1/+2 |
| | |||||
* | bpo 39114 broke 3.9, but maybe it's their bug | Ned Batchelder | 2019-12-21 | 1 | -0/+5 |
| | |||||
* | I'm not sure why I was deleting these meta env vars | Ned Batchelder | 2019-12-01 | 1 | -7/+0 |
| | | | | Don't we want to measure the coverage of subprocesses we start in tests? | ||||
* | Coverage.py is only capitalized when it starts a sentence | Ned Batchelder | 2019-11-10 | 1 | -3/+3 |
| |