summaryrefslogtreecommitdiff
path: root/coverage
Commit message (Collapse)AuthorAgeFilesLines
...
* build: prep for 6.3.26.3.2Ned Batchelder2022-02-201-1/+1
|
* fix: pypy3.9 traces decorators like CPython 3.8Ned Batchelder2022-02-201-1/+1
|
* fix: provide an intelligible error message for multiprocessing with no ↵Ned Batchelder2022-02-091-0/+2
| | | | config file. #1320
* test: dropping old Python versions mean we no longer need ↵Ned Batchelder2022-02-061-3/+2
| | | | optimize_if_not_debug=0
* debug: pybehave is now an option on `coverage debug`Ned Batchelder2022-02-065-41/+49
|
* debug: tweaks to make these clearerNed Batchelder2022-02-062-7/+6
|
* test: make if_not_debug optimization testing a little more rationalNed Batchelder2022-02-061-15/+16
|
* test: adapt to PyPy 3.9 v7.8.8Ned Batchelder2022-02-062-9/+15
|
* debug: add 'pybehave' debug informationNed Batchelder2022-02-062-2/+24
| | | | It shows the behavior flags from coverage.env.
* debug: include an indication of exception in the debug logNed Batchelder2022-02-031-0/+4
|
* build: version bump and more release detailsNed Batchelder2022-02-011-1/+1
|
* build: prep for 6.3.16.3.1Ned Batchelder2022-02-011-1/+1
|
* fix: use --precision argument when checking --fail-under (#1317)Marcelo Trylesinski2022-02-011-0/+2
| | | | | | | | | | | | | * build: windows 3.11.0a4 started failing to save the pip cache * Fix precision argument when using cmd * Remove print * Remove isort things * last isort... Co-authored-by: Ned Batchelder <ned@nedbatchelder.com>
* debug: better tracing of pytracer changedNed Batchelder2022-01-301-3/+5
|
* fix: use a re-entrant lock to avoid self-deadlocking #1310Ned Batchelder2022-01-301-1/+5
|
* test: skip tests on py 3.11.0a4 that are failing in metacovNed Batchelder2022-01-291-0/+3
| | | | | This specific set of circumstances was triggering https://bugs.python.org/issue44088
* fix: only set signal handlers from the main thread. #1312Ned Batchelder2022-01-261-1/+4
|
* build: bump versionNed Batchelder2022-01-251-1/+1
|
* build: prepping for 6.3Ned Batchelder2022-01-251-1/+1
|
* docs: make it easier to add command-line options correctlyNed Batchelder2022-01-251-4/+14
|
* fix: more cleanup of --data-file optionsNed Batchelder2022-01-251-11/+18
|
* style: uniform formatting of cmdline optionsNed Batchelder2022-01-251-13/+9
|
* refactor: adjust some of the --data-file option handlingNed Batchelder2022-01-251-19/+28
|
* feat: use --data-file to configure the coverage databaseNikita Bloshchanevich2022-01-252-9/+29
|
* fix: save data on SIGTERM #1307Ned Batchelder2022-01-232-3/+18
| | | | This covers multiprocessing.Process.terminate(), and maybe other cases also.
* style: cleanups after lcov, though more than just lcovNed Batchelder2022-01-222-47/+48
|
* fix: small fixes to lcov, and changes.rst mention.Ned Batchelder2022-01-222-5/+6
|
* feat: add "lcov" command for generating LCOV reportsBradley Burns2022-01-225-0/+170
| | | | | | | * Add LCOV functionality into coverage.py * Add testing for the LCOV reporter * Add documentation for the LCOV reporter
* fix: create the db as needed when accessedNed Batchelder2022-01-201-30/+25
|
* refactor: make this more apparentNed Batchelder2022-01-171-1/+2
|
* fix: proper tracing of call/return for Python 3.11.0a4Ned Batchelder2022-01-152-16/+56
| | | | | Version 3.11.0a4 introduced RESUME, so returns and calls are different now. This change also fixes some mishandling of yield-from in previous releases.
* fix: update pytracer.py for Python 3.11Ned Batchelder2022-01-151-5/+25
|
* debug: reprs make debugging easierNed Batchelder2022-01-151-1/+3
|
* fix: 3.11 now traces decorator lines as the decorators executeNed Batchelder2022-01-152-2/+12
| | | | See: https://bugs.python.org/issue46234
* fix: don't write a .gitignore unless the directory is emptyNed Batchelder2022-01-111-3/+6
|
* style: minor cleanups realized while reviewing a pull requestNed Batchelder2022-01-052-10/+10
|
* refactor: no need to special-case spec.origin == "namespace"Ned Batchelder2022-01-031-2/+1
| | | | | Namespace packages used to have this value, but that was changed in 3.7: https://bugs.python.org/issue32305
* refactor: we no longer need to protect against UnicodeError, it was only on 3.6Ned Batchelder2022-01-031-7/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This was the failure it was protecting against on Python 3.6: ``` ___________________________ ProcessTest.test_lang_c ____________________________ [gw0] linux -- Python 3.6.15 /home/runner/work/coveragepy/coveragepy/.tox/py36/bin/python self = <tests.test_process.ProcessTest object at 0x7fe57e63b198> @pytest.mark.skipif(env.PYPY, reason="PyPy is unreliable with this test") # Jython as of 2.7.1rc3 won't compile a filename that isn't utf-8. @pytest.mark.skipif(env.JYTHON, reason="Jython can't handle this test") def test_lang_c(self): # LANG=C forces getfilesystemencoding on Linux to 'ascii', which causes # failures with non-ascii file names. We don't want to make a real file # with strange characters, though, because that gets the test runners # tangled up. This will isolate the concerns to the coverage.py code. # https://github.com/nedbat/coveragepy/issues/533 self.make_file("weird_file.py", r""" globs = {} code = "a = 1\nb = 2\n" exec(compile(code, "wut\xe9\xea\xeb\xec\x01\x02.py", 'exec'), globs) print(globs['a']) print(globs['b']) """) self.set_environ("LANG", "C") out = self.run_command("coverage run weird_file.py") > assert out == "1\n2\n" E assert 'Traceback (m...ion by zero\n' == '1\n2\n' E - 1 E - 2 E + Traceback (most recent call last): E + File "/home/runner/work/coveragepy/coveragepy/coverage/files.py", line 149, in abs_file E + path = os.path.realpath(path) E + File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/posixpath.py", line 395, in realpath E + path, ok = _joinrealpath(filename[:0], filename, {}) E + File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/posixpath.py", line 429, in _joinrealpath E + if not islink(newpath): E + File "/opt/hostedtoolcache/Python/3.6.15/x64/lib/python3.6/posixpath.py", line 171, in islink E + st = os.lstat(path) E + UnicodeEncodeError: 'ascii' codec can't encode characters in position 3-6: ordinal not in range(128) ```
* build(test): PyContracts doesn't work on 3.11Ned Batchelder2022-01-021-1/+5
| | | | and I don't think it ever will.
* refactor: remove code that was only needed for Python 3.6Ned Batchelder2021-12-312-27/+8
|
* build: drop Python 3.6 supportNed Batchelder2021-12-311-1/+1
|
* build: bump versionNed Batchelder2021-11-261-1/+1
|
* docs: prep for 6.26.2Ned Batchelder2021-11-261-1/+1
|
* docs: tweak the description of --concurrencyNed Batchelder2021-11-261-1/+1
|
* feat: multiple --concurrency values. #1012 #1082nedbat/multi-concurrencyNed Batchelder2021-11-255-54/+69
|
* test(fix): keep SourceIncludeOmitTest's from clobbering each otherNed Batchelder2021-11-241-0/+3
| | | | | | | | Because they cd'd into a folder in the shared source tree, their data files would collide, leading to flaky tests. Also, add a check that the tests collected some data, and add sys.path to the debug=trace output.
* test(fix): skip tests that trip a specific Mac 3.9 eventlet bugNed Batchelder2021-11-241-0/+1
|
* refactor: this is nicer as a setNed Batchelder2021-11-241-2/+2
|
* refactor: super-nit-picky tweaks from mypyNed Batchelder2021-11-212-3/+3
|
* fix: suffix=False will suppress the suffix even with multiprocessing. #989Ned Batchelder2021-11-181-1/+6
|