summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* test: exclude one last line in test_api.pyNed Batchelder2021-08-091-1/+1
|
* debug: improved logging in tracer.cNed Batchelder2021-08-091-13/+14
|
* build: never warn about old pip versionsNed Batchelder2021-08-094-0/+12
|
* test: add a test for #1205 bpo-44840Ned Batchelder2021-08-091-1/+27
|
* chore: update tooling versionsNed Batchelder2021-08-095-14/+14
|
* Fix parsing 'command_line' option (#1201)Pavel Tsialnou2021-08-061-1/+1
| | | | | Coverage config files supports 'command_line' parameters. However, only '-m' is parsed properly. The line 'command_line = "--module unittest discover"' is considered as a path, not a module option.
* feat: mention skipped file counts in the HTML report. #1163Ned Batchelder2021-08-064-1/+36
|
* docs: skip_covered and skip_empty were never documentedNed Batchelder2021-08-061-0/+10
|
* test: add a test of the one thing uncovered in results.pyNed Batchelder2021-08-051-0/+8
|
* feat: `coverage combine` now prints messages naming the files being ↵Ned Batchelder2021-08-055-13/+32
| | | | combined. #1105 (#1208)
* feat: HTML report now says where the report is. #1195 (#1207)Ned Batchelder2021-08-057-6/+28
|
* feat: unrecognized options are now a warning rather than error. #1035 (#1206)Ned Batchelder2021-08-054-24/+35
| | | | Because they are warnings issued while parsing the configuration file, it's not possible to suppress them with the coverage configuration.
* build: use 3.10.0-rc.1 (#1204)Ned Batchelder2021-08-043-3/+3
|
* docs: add more detail to a confusing changelog entryNed Batchelder2021-08-021-1/+5
| | | | | | | safety-db read this entry and reported it as a security issue. It was never a security problem. https://github.com/pyupio/safety-db/issues/2335
* style: fix typos discovered by codespell (#1197)Christian Clauss2021-08-0110-16/+16
| | | | | | | | | | | python3 -m pip install codespell codespell --ignore-words-list="ba,cant,datas,hart,linke,ned,nin,overthere,upto" --skip="*.js" * Fix typos discovered by codespell * datas * intgers ==> integers
* fix: correct previous refactoringsNed Batchelder2021-07-285-9/+9
| | | | | File names should not be rendered with !r, since on Windows that will produce double backslashes, which only confuses people.
* refactor: convert %-strings to f-stringsNed Batchelder2021-07-2810-29/+19
|
* fix: match/case will trace the default case lineNed Batchelder2021-07-272-4/+1
|
* docs: clarify the behavior of exclude_linesNed Batchelder2021-07-252-2/+23
|
* build: better error reporting in download_gha_artifactsNed Batchelder2021-07-241-10/+15
|
* build: generalize download_gha_artifacts so other repos can use itNed Batchelder2021-07-242-2/+3
|
* test: show hash-based pyc fields in show_pycNed Batchelder2021-07-221-2/+4
| | | | https://www.python.org/dev/peps/pep-0552/
* fix: retry immediately on a failure inside executemany. #1010Ned Batchelder2021-07-212-2/+9
|
* fix: raise chained errors with "from" #998Ned Batchelder2021-07-208-33/+31
| | | | | | This makes exceptions report their causes correctly, as "The above exception was the direct cause of the following exception" instead of "During handling of the above exception, another exception occurred."
* test: don't report this function in pytest tracebacksNed Batchelder2021-07-201-0/+1
|
* test: check the plugin warnings differentlyNed Batchelder2021-07-201-1/+2
| | | | | | | | The old way, extra warnings that we don't care about could creep in. For some reason, disabling PyContracts causes "imp" DeprecationWarnings to appear in the list. Rather than assert there's only one warning, assert there's only one from us.
* test: add a test for bpo 44622, #1176Ned Batchelder2021-07-191-0/+24
|
* docs: mention sys.setprofile as code that will not be measured. #1192Ned Batchelder2021-07-191-0/+5
|
* test: add tests of #1175Ned Batchelder2021-07-191-0/+34
| | | | | | Python versions before 3.10 didn't trace trailing "pass" statements correctly. I don't think that will change at this point, so we'll skip this test for those versions.
* build: push --all is too muchNed Batchelder2021-07-181-1/+1
|
* build: bump version6.0b1Ned Batchelder2021-07-182-1/+7
|
* docs: prep for 6.0b1Ned Batchelder2021-07-183-6/+8
|