Merge pull request #390 from nicoddemus/pytest-logwarning
Prepare for the removal of pytest_logwarning in pytest 4.1
This commit is contained in:
@@ -1 +1 @@
|
||||
Add support for pytest 4.1.
|
||||
pytest 4.1 support: ``ExceptionInfo`` API changes.
|
||||
|
||||
1
changelog/390.bugfix.rst
Normal file
1
changelog/390.bugfix.rst
Normal file
@@ -0,0 +1 @@
|
||||
pytest 4.1 support: ``pytest_logwarning`` hook removed.
|
||||
@@ -115,6 +115,9 @@ class WorkerInteractor(object):
|
||||
data = serialize_report(report)
|
||||
self.sendevent("collectreport", data=data)
|
||||
|
||||
# the pytest_logwarning hook was removed in pytest 4.1
|
||||
if hasattr(_pytest.hookspec, "pytest_logwarning"):
|
||||
|
||||
def pytest_logwarning(self, message, code, nodeid, fslocation):
|
||||
self.sendevent(
|
||||
"logwarning",
|
||||
|
||||
Reference in New Issue
Block a user