Fixed a bug in the python3-coverage tool.
This commit is contained in:
parent
56e7cf1147
commit
33f75aefae
2 changed files with 6 additions and 5 deletions
2
BUGS
2
BUGS
|
|
@ -3,7 +3,6 @@ Current
|
||||||
|
|
||||||
|
|
||||||
Current (tool related)
|
Current (tool related)
|
||||||
- python-coverage is failing in the sub-directories of a project.
|
|
||||||
- disassemble for python doesn't always work.
|
- disassemble for python doesn't always work.
|
||||||
- gut had an error with utf-8. A traceback printed directly on the screen,
|
- gut had an error with utf-8. A traceback printed directly on the screen,
|
||||||
garbling the interface.
|
garbling the interface.
|
||||||
|
|
@ -213,6 +212,7 @@ Fixed
|
||||||
- Scrolling in the help screen doesn't work with the arrow keys.
|
- Scrolling in the help screen doesn't work with the arrow keys.
|
||||||
- If vigil is started with eveything up-to-date the up-to-date message never
|
- If vigil is started with eveything up-to-date the up-to-date message never
|
||||||
appears.
|
appears.
|
||||||
|
- python-coverage is failing in the sub-directories of a project.
|
||||||
|
|
||||||
|
|
||||||
Won't fix
|
Won't fix
|
||||||
|
|
|
||||||
9
tools.py
9
tools.py
|
|
@ -316,10 +316,11 @@ def python_coverage(path):
|
||||||
env["COVERAGE_FILE"] = coverage_path
|
env["COVERAGE_FILE"] = coverage_path
|
||||||
stdout, *rest = _do_command(
|
stdout, *rest = _do_command(
|
||||||
[python_exe, "run", test_path], env=env, timeout=TIMEOUT)
|
[python_exe, "run", test_path], env=env, timeout=TIMEOUT)
|
||||||
stdout, *rest = _do_command(
|
path = os.path.normpath(path)
|
||||||
[python_exe, "annotate", "--directory", temp_dir,
|
stdout, *rest = _do_command([python_exe, "annotate", "--directory",
|
||||||
os.path.normpath(path)], env=env)
|
temp_dir, path], env=env)
|
||||||
with open(os.path.join(temp_dir, path + ",cover"), "r") as f:
|
flat_path = path.replace("/", "_")
|
||||||
|
with open(os.path.join(temp_dir, flat_path + ",cover"), "r") as f:
|
||||||
stdout = f.read()
|
stdout = f.read()
|
||||||
return Status.normal, fill3.Text(_colorize_coverage_report(stdout))
|
return Status.normal, fill3.Text(_colorize_coverage_report(stdout))
|
||||||
else:
|
else:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue