1
changelog/384.bugfix.rst
Normal file
1
changelog/384.bugfix.rst
Normal file
@@ -0,0 +1 @@
|
|||||||
|
Add support for pytest 4.1.
|
||||||
@@ -345,6 +345,10 @@ class WorkerController(object):
|
|||||||
except: # noqa
|
except: # noqa
|
||||||
from _pytest._code import ExceptionInfo
|
from _pytest._code import ExceptionInfo
|
||||||
|
|
||||||
|
# ExceptionInfo API changed in pytest 4.1
|
||||||
|
if hasattr(ExceptionInfo, "from_current"):
|
||||||
|
excinfo = ExceptionInfo.from_current()
|
||||||
|
else:
|
||||||
excinfo = ExceptionInfo()
|
excinfo = ExceptionInfo()
|
||||||
print("!" * 20, excinfo)
|
print("!" * 20, excinfo)
|
||||||
self.config.notify_exception(excinfo)
|
self.config.notify_exception(excinfo)
|
||||||
|
|||||||
Reference in New Issue
Block a user