Bump min pytest to 7.0.0

Refs #1057
This commit is contained in:
Ran Benita
2024-04-04 19:52:09 +03:00
parent 99b767b6dd
commit 31de42ffa5
15 changed files with 40 additions and 56 deletions

View File

@@ -401,9 +401,7 @@ class WorkerController:
# should not land in receiver-thread
raise
except BaseException:
from _pytest._code import ExceptionInfo
excinfo = ExceptionInfo.from_current()
excinfo = pytest.ExceptionInfo.from_current()
print("!" * 20, excinfo)
self.config.notify_exception(excinfo)
self.shutdown()