Skip to content

Commit 5a7bd63

Browse files
author
alexandr
committed
RPPT-001 | Use cgi instead html for support python 2.7
1 parent f75b0ae commit 5a7bd63

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

pytest_reportportal/listener.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import html
1+
import cgi
22
import pytest
33

44
from .service import PyTestService
@@ -28,7 +28,8 @@ def pytest_runtest_makereport(self):
2828

2929
if report.longrepr:
3030
PyTestService.post_log(
31-
html.escape(report.longreprtext),
31+
# Used for support python 2.7
32+
cgi.escape(report.longreprtext),
3233
loglevel='ERROR',
3334
)
3435

0 commit comments

Comments
 (0)