Commit 992da9b6 authored by Elizaveta Shashkova's avatar Elizaveta Shashkova Committed by Andrey Vlasovskikh
Browse files

Updates from PyDev: Minor fix in pytest integration (when something goes wrong with pytest).

(cherry picked from commit 47ec26c0)
parent 19a50225
Branches unavailable Tags unavailable
No related merge requests found
Showing with 2 additions and 2 deletions
+2 -2
......@@ -281,7 +281,7 @@ def pytest_runtest_logreport(report):
# This will work if pytest is not capturing it, if it is, nothing will
# come from here...
captured_output, error_contents = report.pydev_captured_output, report.pydev_error_contents
captured_output, error_contents = getattr(report, 'pydev_captured_output', ''), getattr(report, 'pydev_error_contents', '')
for type_section, value in report.sections:
if value:
if type_section in ('err', 'stderr', 'Captured stderr call'):
......@@ -289,7 +289,7 @@ def pytest_runtest_logreport(report):
else:
captured_output = append_strings(error_contents, value)
filename = report.pydev_fspath_strpath
filename = getattr(report, 'pydev_fspath_strpath', '<unable to get>')
test = report.location[2]
if report_outcome != 'skipped':
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment