Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | mypy: test_parser.py test_phystokens.py test_process.py test_report.py ↵ | Ned Batchelder | 2023-01-07 | 1 | -68/+72 |
| | | | | test_results.py test_setup.py | ||||
* | refactor: removed mentions of Jython and IronPython | Ned Batchelder | 2022-12-30 | 1 | -18/+4 |
| | |||||
* | feat: file paths are only remapped if the result exists | Ned Batchelder | 2022-11-29 | 1 | -0/+2 |
| | |||||
* | fix: an empty file shouldn't fail with --fail-under=99. #1470 | Ned Batchelder | 2022-11-06 | 1 | -1/+2 |
| | |||||
* | test: pypy fixed their sys.path[0] difference, 3792 | Ned Batchelder | 2022-08-27 | 1 | -2/+1 |
| | | | | https://foss.heptapod.net/pypy/pypy/-/issues/3792 | ||||
* | test: btw, pypy no longer includes the current dir in sys.path when running ↵ | Ned Batchelder | 2022-08-25 | 1 | -8/+0 |
| | | | | a directory | ||||
* | test: pypy partially fixed issue 3792 | Ned Batchelder | 2022-08-25 | 1 | -1/+0 |
| | | | | https://foss.heptapod.net/pypy/pypy/-/issues/3792 | ||||
* | test: xfail some tests that need PyPy to improve #1426 | Ned Batchelder | 2022-08-02 | 1 | -2/+4 |
| | | | | https://foss.heptapod.net/pypy/pypy/-/issues/3792 | ||||
* | style: parens should indent the same as their opening line | Ned Batchelder | 2022-05-01 | 1 | -2/+2 |
| | |||||
* | fix: protect fullcoverage against lineno=None, bpo46911 | Ned Batchelder | 2022-03-03 | 1 | -4/+0 |
| | | | | https://bugs.python.org/issue46911 | ||||
* | refactor(test): use xfail for tests that fail on specific versions of Python | Ned Batchelder | 2022-01-19 | 1 | -1/+1 |
| | |||||
* | test: skip tests suffering from bpo 46389 (3.11) | Ned Batchelder | 2022-01-15 | 1 | -3/+5 |
| | |||||
* | refactor: clean up mentions of coverage3 alias | Ned Batchelder | 2021-12-31 | 1 | -13/+12 |
| | |||||
* | test(refactor): avoid full commands to speed tests | Ned Batchelder | 2021-11-26 | 1 | -198/+5 |
| | | | | Also btw, I think some of these tests are duplicative. | ||||
* | test(perf): shave a few seconds off the FailUnder tests | Ned Batchelder | 2021-11-26 | 1 | -12/+9 |
| | |||||
* | test(refactor): if two skips apply, put the more significant reason closer ↵ | Ned Batchelder | 2021-11-21 | 1 | -1/+1 |
| | | | | to the def | ||||
* | fix(test): make .pth files once per session | Ned Batchelder | 2021-11-21 | 1 | -67/+2 |
| | | | | | | | | | | | The old way, we made and deleted .pth file around each test. This caused problems because pth files are written to a common location shared by all test workers, so tests would fail because pth files were being deleted as other workers were trying to use them. Now we make the pth file once per session. There's still a chance that a worker will be using a pth file just as another worker is ending and removing it. | ||||
* | refactor(test): move unicode handling tests to individual test files | Ned Batchelder | 2021-11-20 | 1 | -84/+1 |
| | | | | Eight fewer sub-processes | ||||
* | refactor: add_lines only needs an iterable of ints | Ned Batchelder | 2021-11-13 | 1 | -1/+1 |
| | | | | | The old code expected a dict with int keys, but iterables are simpler, so get rid of a lot of dict.fromkeys() nonsense. | ||||
* | test(fix): make the fullcoverage test work on 3.11 | Ned Batchelder | 2021-11-12 | 1 | -3/+1 |
| | | | | | It didn't work because the os module is frozen on 3.11, so it gets no measurement. Use -X to disable the frozen modules feature for the test. | ||||
* | style: convert more string formatting to f-strings | Ned Batchelder | 2021-11-11 | 1 | -6/+6 |
| | |||||
* | fix: CPython 3.11 support. #1241 | Ned Batchelder | 2021-11-10 | 1 | -0/+2 |
| | | | | | | | | | | | The fix for CTracer is egregious and will need to be updated when there's a supported way to do it. The fullcoverage skip is noted in https://github.com/nedbat/coveragepy/issues/1278 The raise_through_with skip is noted in https://github.com/nedbat/coveragepy/issues/1270 | ||||
* | refactor(test): convert eight tests to one parametrized test | Ned Batchelder | 2021-11-07 | 1 | -27/+4 |
| | |||||
* | refactor(test): use the expected name for initializing tests. | Ned Batchelder | 2021-11-07 | 1 | -6/+6 |
| | | | | | | | | | 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. | ||||
* | refactor(test): make traceback checks a bit flexible | Ned Batchelder | 2021-11-04 | 1 | -3/+6 |
| | | | | | | | | | | | | Python 3.11 made a traceback look like this: Traceback (most recent call last): File "{path}", line 8, in <module> print(sys.argv[1]) ~~~~~~~~^^^ IndexError: list index out of range We needed to not care if that tilde-caret line was present or not. | ||||
* | test(fix): isolate excepthook tests from each other | Ned Batchelder | 2021-11-02 | 1 | -0/+2 |
| | |||||
* | refactor(test): the virtualenv tests deserve their own file | Ned Batchelder | 2021-10-31 | 1 | -263/+1 |
| | |||||
* | refactor(test): make re_lines (et al) look like re.search | Ned Batchelder | 2021-10-28 | 1 | -19/+19 |
| | | | | and also replace some calls with just-plain re.search. | ||||
* | refactor(test): re_lines is more useful if it returns a list | Ned Batchelder | 2021-10-27 | 1 | -6/+7 |
| | |||||
* | feat: xml and json say what they are doing, and -q quiets everything. #1254nedbat/dashq | Ned Batchelder | 2021-10-26 | 1 | -2/+2 |
| | |||||
* | fix: changes for PyPy3.8 | Ned Batchelder | 2021-10-25 | 1 | -1/+1 |
| | | | | | | | | | | - Update tox.ini to let us run against PyPy3.8 - Some 3.8 behavior is (apparently) only on CPython - PyPy3.8 doesn't get along with virtualenv yet (https://github.com/pypa/virtualenv/issues/2182), so use venv instead for our virtualenv tests. | ||||
* | refactor(test): os_sep and remove_tree helpers | Ned Batchelder | 2021-10-24 | 1 | -2/+2 |
| | |||||
* | feat: `coverage run` now sets the COVERAGE_RUN environment variable | Ned Batchelder | 2021-10-16 | 1 | -1/+16 |
| | |||||
* | test: very minor clean up | Ned Batchelder | 2021-10-16 | 1 | -1/+4 |
| | |||||
* | fix: find_writable_pth_directory must expect failure from open() | Michał Górny | 2021-10-12 | 1 | -4/+4 |
| | | | | | | | Fix find_writable_pth_directory() to expect the OSError from the open() call. In general, this is what's going to happen if the file is not writable. The current logic could only be triggered e.g. if the file was writable but the underlying filesystem run out of space. | ||||
* | test: add more tests of run_python_file | Ned Batchelder | 2021-10-11 | 1 | -4/+7 |
| | | | | | | The tests in test_process run the exception handling in execfile.py, but only under coverage, so metacov can't see it. These smaller tests exercise the code without coverage on top. | ||||
* | fix: make third-party detection work with namespace packages. #1231 | Ned Batchelder | 2021-10-10 | 1 | -3/+74 |
| | |||||
* | refactor: remove some left over test prints | Ned Batchelder | 2021-10-10 | 1 | -3/+0 |
| | |||||
* | refactor: simplify some strange string formatting | Ned Batchelder | 2021-10-10 | 1 | -2/+2 |
| | |||||
* | refactor: no need for maybe-u prefixes in test regexes | Ned Batchelder | 2021-10-10 | 1 | -2/+2 |
| | | | | That was for Python 2, which we don't support anymore. | ||||
* | style: prefer explicit string concatenation | Ned Batchelder | 2021-10-10 | 1 | -16/+15 |
| | |||||
* | style: use the official designation for utf-8 | Ned Batchelder | 2021-10-10 | 1 | -1/+1 |
| | | | | | Yes, this is completely unimportant. Don't ask me why I bothered, I'm not really sure. | ||||
* | test: make metacov work with xdist | Ned Batchelder | 2021-10-08 | 1 | -1/+1 |
| | | | | | | | | | I was using pytest.__file__ as a directory, but in 5.3.2, pytest changed to be a package, so that wasn't the site-packages directory anymore, and our .pth file was written someplace useless. Now we don't rely on the structure of pytest (why did we ever?), and it works again. | ||||
* | feat: HTML report now says where the report is. #1195 (#1207) | Ned Batchelder | 2021-08-05 | 1 | -2/+2 |
| | |||||
* | fix: generate flat file names differently | Ned Batchelder | 2021-07-15 | 1 | -2/+3 |
| | | | | | | | | 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 | ||||
* | fix: --fail-under=100 could report 100 is less than 100. | Ned Batchelder | 2021-05-31 | 1 | -0/+16 |
| | | | | | | | 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 | ||||
* | 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 | 1 | -5/+9 |
| | | | | | | 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 |
| | |||||
* | refactor: remove a few more version checks | Ned Batchelder | 2021-05-02 | 1 | -4/+1 |
| |