summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* fix: raise CoverageException for SQLite connection errorsnedbat/sqldata-edge-testsNed Batchelder2021-10-102-1/+13
|
* refactor: simplify some strange string formattingNed Batchelder2021-10-102-5/+5
|
* test: test two add_file_tracer possibilitiesNed Batchelder2021-10-101-0/+22
|
* refactor: no need for maybe-u prefixes in test regexesNed Batchelder2021-10-104-11/+11
| | | | That was for Python 2, which we don't support anymore.
* test: run test_data.py with debugging onNed Batchelder2021-10-101-96/+110
|
* refactor: remove a mixin class from testsNed Batchelder2021-10-101-67/+64
|
* style: prefer explicit string concatenationNed Batchelder2021-10-1014-140/+133
|
* refactor: remove a Python 2 thingNed Batchelder2021-10-101-6/+1
|
* style: use the official designation for utf-8Ned Batchelder2021-10-1011-16/+16
| | | | | Yes, this is completely unimportant. Don't ask me why I bothered, I'm not really sure.
* fix: contexts_by_lineno now returns a true dictNed Batchelder2021-10-095-17/+40
|
* test: add a test of touching files in an empty CoverageDataNed Batchelder2021-10-091-0/+6
|
* refactor: don't need this printNed Batchelder2021-10-091-1/+0
|
* style: make string quotes uniformNed Batchelder2021-10-091-74/+71
|
* test: set_query_contexts takes regex, make the examples look like regexNed Batchelder2021-10-091-6/+6
|
* refactor: this import was only needed for Python 2Ned Batchelder2021-10-081-4/+1
|
* test: mark some uncovered thingsNed Batchelder2021-10-083-3/+12
|
* test: this xdist defensiveness now seems unneededNed Batchelder2021-10-081-26/+0
|
* test: make metacov work with xdistNed Batchelder2021-10-083-5/+4
| | | | | | | | | 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.
* test: canonicalize this bit of debug outputNed Batchelder2021-10-082-2/+2
|
* build: make "clean" targets be quietNed Batchelder2021-10-082-21/+22
|
* build: bump versionNed Batchelder2021-10-062-1/+7
|
* build: prep for 6.0.16.0.1Ned Batchelder2021-10-064-6/+8
|
* docs: this document isn't in a toc, and that's okNed Batchelder2021-10-061-0/+2
|
* fix: make exceptions importable from coverage.misc again. #1226Ned Batchelder2021-10-062-1/+13
|
* docs: note #1210 in the changelogNed Batchelder2021-10-063-1/+9
|
* Fix an incompatibility with pyarmorglacials2021-10-062-1/+7
|
* fix: pretend we didn't import third-party packages we use. #1228Ned Batchelder2021-10-064-7/+52
| | | | | | tomli couldn't use coverage themselves because we imported it early. Cleaning sys.modules means their own imports will actually execute after coverage has started, so their files will be properly measured.
* build: 3.10.0 is outNed Batchelder2021-10-053-2/+3
|
* docs: the 5.0 change summary shouldn't be so prominent anymoreNed Batchelder2021-10-042-4/+4
|
* build: bump versionNed Batchelder2021-10-022-1/+7
|
* docs: 6.0 sample HTML report6.0Ned Batchelder2021-10-0215-852/+849
|
* build: prep for 6.0 releaseNed Batchelder2021-10-025-9/+12
|
* docs: update the link to shining pandaNed Batchelder2021-10-021-1/+1
|
* test: fix flaky multiprocessing testsNed Batchelder2021-09-291-1/+1
| | | | | Tests are failing because we expect to see three different pids, but only get two. Is that because the work is being completed too quickly?
* chore: update requirementsNed Batchelder2021-09-295-16/+16
|
* test: update pylintNed Batchelder2021-09-293-2/+4
|
* Python 3.10.0rc2Ned Batchelder2021-09-083-3/+3
|
* docs: thanks, Clément Pit-ClaudelNed Batchelder2021-09-022-0/+6
|
* fix: Avoid a race condition in misc.ensure_dir (#1220)Clément Pit-Claudel2021-09-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * coverage/misc.py (ensure_dir): Pass exist_ok to os.makedirs, ensuring that if two concurrent instances of coverage.py entering this function at the same time won't fail with FileExistsError. Sample backtrace: Traceback (most recent call last): File "/usr/lib/python3.8/runpy.py", line 194, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.8/runpy.py", line 87, in _run_code exec(code, run_globals) File "/home/user/.local/lib/python3.8/site-packages/coverage/__main__.py", line 8, in <module> sys.exit(main()) File "/home/user/.local/lib/python3.8/site-packages/coverage/cmdline.py", line 871, in main status = CoverageScript().command_line(argv) File "/home/user/.local/lib/python3.8/site-packages/coverage/cmdline.py", line 588, in command_line return self.do_run(options, args) File "/home/user/.local/lib/python3.8/site-packages/coverage/cmdline.py", line 743, in do_run self.coverage.start() File "/home/user/.local/lib/python3.8/site-packages/coverage/control.py", line 535, in start self._init_for_start() File "/home/user/.local/lib/python3.8/site-packages/coverage/control.py", line 474, in _init_for_start self._init_data(suffix) File "/home/user/.local/lib/python3.8/site-packages/coverage/control.py", line 512, in _init_data ensure_dir_for_file(self.config.data_file) File "/home/user/.local/lib/python3.8/site-packages/coverage/misc.py", line 165, in ensure_dir_for_file ensure_dir(os.path.dirname(path)) File "/.local/lib/python3.8/site-packages/coverage/misc.py", line 160, in ensure_dir os.makedirs(directory) File "/usr/lib/python3.8/os.py", line 223, in makedirs mkdir(name, mode)
* test: another test suggested by Mark ShannonNed Batchelder2021-08-311-0/+15
|
* build: don't over-run actionsNed Batchelder2021-08-312-0/+4
|
* Add link to coverage.py twitter account to project urls (#1217)Asher Foa2021-08-301-0/+1
|
* build: defend against a local PYTHONPYCACHEPREFIX settingNed Batchelder2021-08-291-0/+3
| | | | | | | I had PYTYHONPYCACHEPREFIX=/tmp/pyc in my local shell, which put pyc files elsewhere. A few tests care very much about .pyc files, so those tests failed. This setting in tox.ini will ensure that .pyc files are written locally so the tests will pass.
* fixes typo in kit workflow (#1215)Luis Nell2021-08-231-1/+1
|
* refactor: use sets to collect dataNed Batchelder2021-08-156-62/+60
| | | | | | | Coverage.py predates sets as a built-in data structure, so the file data collection has long been dicts with None as the values. Sets are available to us now (since Python 2.4 in 2004, which coverage.py dropped support for in 2014!), we use sets.
* fix: missing exceptions through with statements in 3.10 aren't considered ↵Ned Batchelder2021-08-143-8/+65
| | | | missing branches. #1205
* refactor: move a test helper to CoverageTestNed Batchelder2021-08-142-6/+10
|
* test: a part-covered comprehensionNed Batchelder2021-08-093-5/+3
| | | | | The comprehension would only completely finish (->exit) if the assert was going to fail. So we expect it to not finish.
* test: simplify pyc logicNed Batchelder2021-08-091-9/+2
| | | | | | The old pycache_prefix logic was because we would run tests in Docker containers, and they went faster if we set PYTHONCACHEPREFIX. But we don't do that anymore, so we can use simpler code.
* test: show contexts in metacov reportNed Batchelder2021-08-093-13/+10
|