Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | fix: save data on SIGTERM #1307 | Ned Batchelder | 2022-01-23 | 2 | -3/+18 | |
| | | | | This covers multiprocessing.Process.terminate(), and maybe other cases also. | |||||
* | style: cleanups after lcov, though more than just lcov | Ned Batchelder | 2022-01-22 | 2 | -47/+48 | |
| | ||||||
* | fix: small fixes to lcov, and changes.rst mention. | Ned Batchelder | 2022-01-22 | 2 | -5/+6 | |
| | ||||||
* | feat: add "lcov" command for generating LCOV reports | Bradley Burns | 2022-01-22 | 5 | -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 accessed | Ned Batchelder | 2022-01-20 | 1 | -30/+25 | |
| | ||||||
* | refactor: make this more apparent | Ned Batchelder | 2022-01-17 | 1 | -1/+2 | |
| | ||||||
* | fix: proper tracing of call/return for Python 3.11.0a4 | Ned Batchelder | 2022-01-15 | 2 | -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.11 | Ned Batchelder | 2022-01-15 | 1 | -5/+25 | |
| | ||||||
* | debug: reprs make debugging easier | Ned Batchelder | 2022-01-15 | 1 | -1/+3 | |
| | ||||||
* | fix: 3.11 now traces decorator lines as the decorators execute | Ned Batchelder | 2022-01-15 | 2 | -2/+12 | |
| | | | | See: https://bugs.python.org/issue46234 | |||||
* | fix: don't write a .gitignore unless the directory is empty | Ned Batchelder | 2022-01-11 | 1 | -3/+6 | |
| | ||||||
* | style: minor cleanups realized while reviewing a pull request | Ned Batchelder | 2022-01-05 | 2 | -10/+10 | |
| | ||||||
* | refactor: no need to special-case spec.origin == "namespace" | Ned Batchelder | 2022-01-03 | 1 | -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.6 | Ned Batchelder | 2022-01-03 | 1 | -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.11 | Ned Batchelder | 2022-01-02 | 1 | -1/+5 | |
| | | | | and I don't think it ever will. | |||||
* | refactor: remove code that was only needed for Python 3.6 | Ned Batchelder | 2021-12-31 | 2 | -27/+8 | |
| | ||||||
* | build: drop Python 3.6 support | Ned Batchelder | 2021-12-31 | 1 | -1/+1 | |
| | ||||||
* | build: bump version | Ned Batchelder | 2021-11-26 | 1 | -1/+1 | |
| | ||||||
* | docs: prep for 6.26.2 | Ned Batchelder | 2021-11-26 | 1 | -1/+1 | |
| | ||||||
* | docs: tweak the description of --concurrency | Ned Batchelder | 2021-11-26 | 1 | -1/+1 | |
| | ||||||
* | feat: multiple --concurrency values. #1012 #1082nedbat/multi-concurrency | Ned Batchelder | 2021-11-25 | 5 | -54/+69 | |
| | ||||||
* | test(fix): keep SourceIncludeOmitTest's from clobbering each other | Ned Batchelder | 2021-11-24 | 1 | -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 bug | Ned Batchelder | 2021-11-24 | 1 | -0/+1 | |
| | ||||||
* | refactor: this is nicer as a set | Ned Batchelder | 2021-11-24 | 1 | -2/+2 | |
| | ||||||
* | refactor: super-nit-picky tweaks from mypy | Ned Batchelder | 2021-11-21 | 2 | -3/+3 | |
| | ||||||
* | fix: suffix=False will suppress the suffix even with multiprocessing. #989 | Ned Batchelder | 2021-11-18 | 1 | -1/+6 | |
| | ||||||
* | refactor: remove comparison methods only needed for Python 2 | Ned Batchelder | 2021-11-17 | 1 | -16/+4 | |
| | ||||||
* | refactor: move this so I can use it ad-hoc more easily | Ned Batchelder | 2021-11-16 | 2 | -26/+26 | |
| | ||||||
* | refactor: filename_suffix() is only used by CoverageData, so move it | Ned Batchelder | 2021-11-16 | 2 | -23/+23 | |
| | ||||||
* | docs: clarify the CoverageData(basename=) argument. #985 | Ned Batchelder | 2021-11-15 | 1 | -1/+1 | |
| | | | | [skip actions] | |||||
* | refactor: specialize exceptions | Ned Batchelder | 2021-11-14 | 14 | -58/+79 | |
| | | | | | | CoverageException is fine as a base class, but not good to use for raising (and catching sometimes). Introduce specialized exceptions that allow third-party tools to integrate better. | |||||
* | docs: document the exceptions | Ned Batchelder | 2021-11-14 | 4 | -12/+12 | |
| | | | | ... and make some of them private. | |||||
* | debug: the `coverage debug` command no longer accepts multiple topics | Ned Batchelder | 2021-11-13 | 1 | -24/+26 | |
| | ||||||
* | fix: suppress exceptions when finding source= modules. #1203 | Ned Batchelder | 2021-11-13 | 1 | -1/+1 | |
| | ||||||
* | style(docs): make note:: uses uniform | Ned Batchelder | 2021-11-13 | 1 | -3/+5 | |
| | ||||||
* | refactor: a plural helper | Ned Batchelder | 2021-11-13 | 3 | -14/+19 | |
| | ||||||
* | feat: 'debug data' now enumerates combinable files also | Ned Batchelder | 2021-11-13 | 2 | -34/+55 | |
| | ||||||
* | refactor: no need for __nonzero__, that was py2 only | Ned Batchelder | 2021-11-13 | 2 | -6/+2 | |
| | ||||||
* | fix: don't overwrite a .gitignore in the html output directory. #1244nedbat/1244-again | Ned Batchelder | 2021-11-12 | 1 | -2/+4 | |
| | ||||||
* | style: convert more string formatting to f-strings | Ned Batchelder | 2021-11-11 | 6 | -7/+7 | |
| | ||||||
* | refactor: we no longer need to treat 'class' lines specially | Ned Batchelder | 2021-11-11 | 1 | -15/+0 | |
| | | | | | Originally, this tokenizing code was paired with bytecode analysis. But now we use AST instead, so class lines don't need to be handled differently. | |||||
* | fix: colons in decorators shouldn't stop an exclusion | Ned Batchelder | 2021-11-10 | 1 | -2/+7 | |
| | ||||||
* | build: bump version | Ned Batchelder | 2021-11-10 | 1 | -1/+1 | |
| | ||||||
* | build: prep for 6.1.2 | Ned Batchelder | 2021-11-10 | 1 | -1/+1 | |
| | ||||||
* | fix: CPython 3.11 support. #1241 | Ned Batchelder | 2021-11-10 | 1 | -1/+7 | |
| | | | | | | | | | | | 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 | |||||
* | style: make these macros more bullet-proof | Ned Batchelder | 2021-11-10 | 2 | -5/+5 | |
| | ||||||
* | fix: warn about more source file problems | Ned Batchelder | 2021-11-09 | 2 | -7/+8 | |
| | ||||||
* | fix: remapping paths during combining needs to follow relative_files=True. #1147 | Ned Batchelder | 2021-11-06 | 2 | -3/+6 | |
| | ||||||
* | fix: give a default value to the name argument for Matchers. #1273 | Ned Batchelder | 2021-11-05 | 1 | -3/+3 | |
| | ||||||
* | fix: don't report branches to exclusions as missing. #1271 | Ned Batchelder | 2021-11-05 | 1 | -1/+2 | |
| |