From 49a6a5b23cb0c9e41b1645ab0e1be0d186ea7a3e Mon Sep 17 00:00:00 2001 From: Alexander Krotov Date: Sun, 12 Jul 2020 22:58:57 +0300 Subject: [PATCH] testplugin.py: print HTTP response text on error --- python/src/deltachat/testplugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/python/src/deltachat/testplugin.py b/python/src/deltachat/testplugin.py index 1f330596a..2a223c289 100644 --- a/python/src/deltachat/testplugin.py +++ b/python/src/deltachat/testplugin.py @@ -152,7 +152,7 @@ class SessionLiveConfigFromURL: assert index == len(self.configlist), index res = requests.post(self.url) if res.status_code != 200: - pytest.skip("creating newtmpuser failed {!r}".format(res)) + pytest.skip("creating newtmpuser failed with code {}: '{}'".format(res.status_code, res.text)) d = res.json() config = dict(addr=d["email"], mail_pw=d["password"]) self.configlist.append(config)