Skip to content

Commit

Permalink
Merge pull request #164 from prashanth-sams/162
Browse files Browse the repository at this point in the history
#162 fix for extra text
  • Loading branch information
prashanth-sams committed Sep 27, 2020
2 parents dc505fa + 2076426 commit 039a659
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions pytest_html_reporter/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,8 @@ def pytest_runtest_makereport(self, item, call):
for line in rep.longreprtext.splitlines():
exception = line.startswith("E ")
if exception:
# self.update_test_error(line.replace("E ", ""))
longerr += line + "\n"
self.update_test_error(longerr)
self.update_test_error(longerr.replace("E ", ""))
else:
self.increment_error()
self.update_test_status("ERROR")
Expand Down

0 comments on commit 039a659

Please sign in to comment.