We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4265ab3 commit a4adf51Copy full SHA for a4adf51
changelog/5782.bugfix.rst
@@ -0,0 +1 @@
1
+Fix decoding error when printing an error response from ``--pastebin``.
src/_pytest/pastebin.py
@@ -72,7 +72,7 @@ def create_new_paste(contents):
72
if m:
73
return "{}/show/{}".format(url, m.group(1))
74
else:
75
- return "bad response: " + response
+ return "bad response: " + response.decode("utf-8")
76
77
78
def pytest_terminal_summary(terminalreporter):
0 commit comments