We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9741a75 commit c87064cCopy full SHA for c87064c
python_files/vscode_pytest/__init__.py
@@ -442,6 +442,7 @@ def pytest_sessionfinish(session, exitstatus):
442
if is_coverage_run == "True":
443
# load the report and build the json result to return
444
import coverage
445
+ from coverage import exceptions
446
447
cov = coverage.Coverage()
448
cov.load()
@@ -461,7 +462,7 @@ def pytest_sessionfinish(session, exitstatus):
461
462
for file in file_set:
463
try:
464
analysis = cov.analysis2(file)
- except coverage.exceptions.NoSource:
465
+ except exceptions.NoSource:
466
# as per issue 24308 this best way to handle this edge case
467
continue
468
lines_executable = {int(line_no) for line_no in analysis[1]}
0 commit comments