summaryrefslogtreecommitdiff
path: root/tests/test_process.py
Commit message (Collapse)AuthorAgeFilesLines
* mypy: test_parser.py test_phystokens.py test_process.py test_report.py ↵Ned Batchelder2023-01-071-68/+72
| | | | test_results.py test_setup.py
* refactor: removed mentions of Jython and IronPythonNed Batchelder2022-12-301-18/+4
|
* feat: file paths are only remapped if the result existsNed Batchelder2022-11-291-0/+2
|
* fix: an empty file shouldn't fail with --fail-under=99. #1470Ned Batchelder2022-11-061-1/+2
|
* test: pypy fixed their sys.path[0] difference, 3792Ned Batchelder2022-08-271-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 Batchelder2022-08-251-8/+0
| | | | a directory
* test: pypy partially fixed issue 3792Ned Batchelder2022-08-251-1/+0
| | | | https://foss.heptapod.net/pypy/pypy/-/issues/3792
* test: xfail some tests that need PyPy to improve #1426Ned Batchelder2022-08-021-2/+4
| | | | https://foss.heptapod.net/pypy/pypy/-/issues/3792
* style: parens should indent the same as their opening lineNed Batchelder2022-05-011-2/+2
|
* fix: protect fullcoverage against lineno=None, bpo46911Ned Batchelder2022-03-031-4/+0
| | | | https://bugs.python.org/issue46911
* refactor(test): use xfail for tests that fail on specific versions of PythonNed Batchelder2022-01-191-1/+1
|
* test: skip tests suffering from bpo 46389 (3.11)Ned Batchelder2022-01-151-3/+5
|
* refactor: clean up mentions of coverage3 aliasNed Batchelder2021-12-311-13/+12
|
* test(refactor): avoid full commands to speed testsNed Batchelder2021-11-261-198/+5
| | | | Also btw, I think some of these tests are duplicative.
* test(perf): shave a few seconds off the FailUnder testsNed Batchelder2021-11-261-12/+9
|
* test(refactor): if two skips apply, put the more significant reason closer ↵Ned Batchelder2021-11-211-1/+1
| | | | to the def
* fix(test): make .pth files once per sessionNed Batchelder2021-11-211-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 filesNed Batchelder2021-11-201-84/+1
| | | | Eight fewer sub-processes
* refactor: add_lines only needs an iterable of intsNed Batchelder2021-11-131-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.11Ned Batchelder2021-11-121-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-stringsNed Batchelder2021-11-111-6/+6
|
* fix: CPython 3.11 support. #1241Ned Batchelder2021-11-101-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 testNed Batchelder2021-11-071-27/+4
|
* refactor(test): use the expected name for initializing tests.Ned Batchelder2021-11-071-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 flexibleNed Batchelder2021-11-041-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 otherNed Batchelder2021-11-021-0/+2
|
* refactor(test): the virtualenv tests deserve their own fileNed Batchelder2021-10-311-263/+1
|
* refactor(test): make re_lines (et al) look like re.searchNed Batchelder2021-10-281-19/+19
| | | | and also replace some calls with just-plain re.search.
* refactor(test): re_lines is more useful if it returns a listNed Batchelder2021-10-271-6/+7
|
* feat: xml and json say what they are doing, and -q quiets everything. #1254nedbat/dashqNed Batchelder2021-10-261-2/+2
|
* fix: changes for PyPy3.8Ned Batchelder2021-10-251-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 helpersNed Batchelder2021-10-241-2/+2
|
* feat: `coverage run` now sets the COVERAGE_RUN environment variableNed Batchelder2021-10-161-1/+16
|
* test: very minor clean upNed Batchelder2021-10-161-1/+4
|
* fix: find_writable_pth_directory must expect failure from open()Michał Górny2021-10-121-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_fileNed Batchelder2021-10-111-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. #1231Ned Batchelder2021-10-101-3/+74
|
* refactor: remove some left over test printsNed Batchelder2021-10-101-3/+0
|
* refactor: simplify some strange string formattingNed Batchelder2021-10-101-2/+2
|
* refactor: no need for maybe-u prefixes in test regexesNed Batchelder2021-10-101-2/+2
| | | | That was for Python 2, which we don't support anymore.
* style: prefer explicit string concatenationNed Batchelder2021-10-101-16/+15
|
* style: use the official designation for utf-8Ned Batchelder2021-10-101-1/+1
| | | | | Yes, this is completely unimportant. Don't ask me why I bothered, I'm not really sure.
* test: make metacov work with xdistNed Batchelder2021-10-081-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 Batchelder2021-08-051-2/+2
|
* fix: generate flat file names differentlyNed Batchelder2021-07-151-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 Batchelder2021-05-311-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 coveredNed Batchelder2021-05-301-2/+2
|
* feat: warnings are now real warningsNed Batchelder2021-05-301-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 directoriesNed Batchelder2021-05-111-1/+1
|
* refactor: remove a few more version checksNed Batchelder2021-05-021-4/+1
|