When an exception occurs in a thread, pytest will emit a PytestUnhandledThreadExceptionWarning warning. However, as this is emitted from a thread, it can\'t be
pytest