| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
| |
Yes, this is completely unimportant. Don't ask me why I bothered, I'm
not really sure.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* 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)
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
missing branches. #1205
|
| |
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
| |
combined. #1105 (#1208)
|
| |
|
|
|
|
| |
Because they are warnings issued while parsing the configuration file, it's not
possible to suppress them with the coverage configuration.
|
|
|
|
|
|
|
|
|
|
|
| |
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
|
|
|
|
|
| |
File names should not be rendered with !r, since on Windows that will
produce double backslashes, which only confuses people.
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
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."
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
|
| |
Fixes a few unusual issues with reports:
- #580: HTML report generation fails on too long path
- #584: File collisions in coverage report html
- #1167: Remove leading underscore in coverage html
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Support TOML v1.0.0 syntax in `pyproject.toml`
fixes #1180
Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com>
* fix toml meta test
* use pytest.mark.parametrize to narrow test failure
* Update tests/test_config.py
Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com>
Co-authored-by: Taneli Hukkinen <3275109+hukkin@users.noreply.github.com>
|
|
|
|
| |
This accessor is now required in 3.11, so let's use it.
|
|
|
|
|
|
|
|
| |
The match and case soft keywords are shown in bold when they are
keywords, and not when they are not.
The underscore soft keyword is ignored, because it is harder to get
right, and because it doesn't look that much different in bold anyway.
|
| |
|
|
|
|
| |
This need 3.10.0b3 (not yet released) to fully pass.
|
|
|
|
|
| |
It was only ever used once per object, so just make the ByteParser when
we need it.
|
|
|
|
|
|
|
|
|
| |
Every statement-level ast node should be tested. Annotated assignment
was missing.
Also, we don't need "exec" anymore, that was only for Python 2.
And: this is the 1000th test!
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|