Skip to content

Commit 9cf8c26

Browse files
Nikita VoronchevNikita Voronchev
authored andcommitted
Use cgi module insted of html: cgi is avaliable both in Python 2 and 3.
1 parent 97711a1 commit 9cf8c26

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pytest_reportportal/plugin.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# and/or modify it under the terms of the GPL licence
33

44
import logging
5-
import html
5+
import cgi
66

77
import pytest
88

@@ -23,7 +23,7 @@ def pytest_runtest_makereport(self, item, call):
2323
report = (yield).get_result()
2424

2525
if report.longrepr:
26-
PyTestService.post_log(html.escape(str(report.longrepr)), logging.ERROR)
26+
PyTestService.post_log(cgi.escape(str(report.longrepr)), logging.ERROR)
2727

2828
if report.when == "setup":
2929

0 commit comments

Comments
 (0)