Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | 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. | ||||
* | refactor: specialize exceptions | Ned Batchelder | 2021-11-14 | 1 | -2/+2 |
| | | | | | | 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. | ||||
* | fix: suppress exceptions when finding source= modules. #1203 | Ned Batchelder | 2021-11-13 | 1 | -1/+1 |
| | |||||
* | refactor(test): don't even import contracts if not using PyContracts | Ned Batchelder | 2021-11-04 | 1 | -4/+5 |
| | | | | | | | | On CPython 3.11, PyContracts fails on import, so we need to shut it off more completely. PyContracts is unmaintained these days, so we'll probably get rid of it completely soon. | ||||
* | fix: don't warn about already imported files for namespace packages #888 | Ned Batchelder | 2021-10-31 | 1 | -0/+4 |
| | | | | Ignore namespace packages in the already-imported check. #888 | ||||
* | fix: avoid measuring generated code. #1160 | Ned Batchelder | 2021-10-18 | 1 | -0/+3 |
| | |||||
* | refactor: no need for specialized pyexpat code anymore | Ned Batchelder | 2021-10-18 | 1 | -5/+0 |
| | | | | | | | | The pyexpat bug that plagued us was fixed in Python 3.4: https://bugs.python.org/issue22462 We no longer need the code that adapted to it. The test will remain, couldn't hurt. | ||||
* | fix: source modules need to be re-imported. #1232 | Ned Batchelder | 2021-10-11 | 1 | -18/+20 |
| | |||||
* | fix: make third-party detection work with namespace packages. #1231 | Ned Batchelder | 2021-10-10 | 1 | -9/+32 |
| | |||||
* | style: use the official designation for utf-8 | Ned Batchelder | 2021-10-10 | 1 | -1/+1 |
| | | | | | Yes, this is completely unimportant. Don't ask me why I bothered, I'm not really sure. | ||||
* | fix: correct previous refactorings | Ned Batchelder | 2021-07-28 | 1 | -1/+1 |
| | | | | | 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-strings | Ned Batchelder | 2021-07-28 | 1 | -4/+3 |
| | |||||
* | feat: warnings are now real warnings | Ned Batchelder | 2021-05-30 | 1 | -8/+5 |
| | | | | | | 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. | ||||
* | refactor: move exceptions to their own module | Ned Batchelder | 2021-05-02 | 1 | -1/+1 |
| | |||||
* | refactor: pyupgrade --py36-plus coverage/*.py | Ned Batchelder | 2021-05-02 | 1 | -16/+14 |
| | |||||
* | refactor: move the remaining backward.py code, no more backward.py | Ned Batchelder | 2021-05-01 | 1 | -31/+9 |
| | |||||
* | refactor: remove yet more unneeded backward.py shims | Ned Batchelder | 2021-05-01 | 1 | -2/+2 |
| | | | | | | | | Gone are: - PYC_MAGIC_NUMBER - code_object - SimpleNamespace | ||||
* | fix: don't warn that dynamic plugins already imported their source files. #1150 | Ned Batchelder | 2021-05-01 | 1 | -0/+5 |
| | |||||
* | fix: restore metacov functioning | Ned Batchelder | 2021-04-11 | 1 | -2/+0 |
| | | | | | | | The check for coverage files inside the --source check disables our metacoverage. Removing it means that coverage files will still not be measured, but the reason will be given as "is third-party" rather than "is part of coverage.py," which is a small price to pay. | ||||
* | fix: don't measure third-party scriptsnedbat/bin-exclude | Ned Batchelder | 2021-04-11 | 1 | -14/+22 |
| | | | | | | This finishes the last bit of #905 Also includes tighter logging of the reason for not tracing modules. | ||||
* | debug: label each matcher with its role | Ned Batchelder | 2021-04-11 | 1 | -7/+7 |
| | |||||
* | fix: don't measure third-party packages | Ned Batchelder | 2021-04-10 | 1 | -9/+94 |
| | | | | | | | | | | | | Avoid measuring code located where third-party packages get installed. We have to take care to measure --source code even if it is installed in a third-party location. This also fixes #905, coverage generating warnings about coverage being imported when it will be measured. https://github.com/nedbat/coveragepy/issues/876 https://github.com/nedbat/coveragepy/issues/905 | ||||
* | refactor: move stdlib and coverage location logic into functions | Ned Batchelder | 2021-04-10 | 1 | -29/+41 |
| | |||||
* | fix: remove debugging code I checked in by accident | Ned Batchelder | 2021-03-19 | 1 | -3/+0 |
| | |||||
* | style: correct two recent lint faux pas | Ned Batchelder | 2021-03-18 | 1 | -0/+3 |
| | |||||
* | Create Way to force package even if filepath exists (#1026) | Thomas Grainger | 2020-09-12 | 1 | -0/+1 |
| | | | Fixes: #268 | ||||
* | More details on --source filtering | Ned Batchelder | 2020-06-29 | 1 | -9/+33 |
| | |||||
* | Don't trace non-encodable file names. #891 | Ned Batchelder | 2020-01-01 | 1 | -0/+6 |
| | |||||
* | A helper to get code objects | Ned Batchelder | 2019-12-02 | 1 | -5/+2 |
| | |||||
* | Correct some function names and docstrings. #843 | Ned Batchelder | 2019-09-09 | 1 | -8/+11 |
| | |||||
* | No need for format indexes (mostly) | Ned Batchelder | 2019-09-01 | 1 | -1/+1 |
| | |||||
* | Don't try to use PyPy 'filenames' like '<builtin>/lib_pypy/_structseq.py' | Ned Batchelder | 2018-11-25 | 1 | -2/+4 |
| | |||||
* | Update NOTICE link to GitHub. | Ned Batchelder | 2018-06-24 | 1 | -1/+1 |
| | |||||
* | Finish up the inorout docstrings | Ned Batchelder | 2018-03-13 | 1 | -2/+17 |
| | |||||
* | check_preimported=True controls whether coverage checks pre-imported files ↵ | Ned Batchelder | 2018-03-06 | 1 | -3/+0 |
| | | | | when starting | ||||
* | In 3.7, namespace modules can have: mod.__file__ is None | Ned Batchelder | 2018-03-05 | 1 | -7/+16 |
| | |||||
* | More uniformity | Ned Batchelder | 2018-02-26 | 1 | -6/+6 |
| | | | | | --HG-- branch : inorout | ||||
* | Huge refactor of code out of control into inorout | Ned Batchelder | 2018-02-25 | 1 | -0/+440 |
--HG-- branch : inorout |