Skip to content

Commit c87064c

Browse files
committed
update import
1 parent 9741a75 commit c87064c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

python_files/vscode_pytest/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -442,6 +442,7 @@ def pytest_sessionfinish(session, exitstatus):
442442
if is_coverage_run == "True":
443443
# load the report and build the json result to return
444444
import coverage
445+
from coverage import exceptions
445446

446447
cov = coverage.Coverage()
447448
cov.load()
@@ -461,7 +462,7 @@ def pytest_sessionfinish(session, exitstatus):
461462
for file in file_set:
462463
try:
463464
analysis = cov.analysis2(file)
464-
except coverage.exceptions.NoSource:
465+
except exceptions.NoSource:
465466
# as per issue 24308 this best way to handle this edge case
466467
continue
467468
lines_executable = {int(line_no) for line_no in analysis[1]}

0 commit comments

Comments
 (0)