Skip to content

Commit 52b4004

Browse files
committed
Address Exception in thread Thread-1 (_monitor) error
1 parent 560f952 commit 52b4004

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -273,9 +273,9 @@ def pytest_report_teststatus(report: CollectReport, config: Config) -> None:
273273

274274

275275
def pytest_sessionfinish(session: Session, exitstatus: int) -> None:
276+
session.config.option.log_listener.stop()
276277
if session.config.option.setupplan or session.config.option.collectonly:
277278
return
278-
279279
base_dir = py_config["tmp_base_dir"]
280280
LOGGER.info(f"Deleting pytest base dir {base_dir}")
281281
shutil.rmtree(path=base_dir, ignore_errors=True)

0 commit comments

Comments
 (0)