tests: Avoid pytrace=False for now.

Using pytest.fail with pytrace=False hides the quteprocess output, which makes
it a lot harder to debug stuff.

This is because TestReport.longrepr is suddenly a string and we can't add infos
to it - see https://github.com/pytest-dev/pytest/issues/1316
This commit is contained in:
Florian Bruhin 2016-01-08 12:33:48 +01:00
parent ff2024a565
commit ab79cd2496

View File

@ -229,7 +229,9 @@ class QuteProc(testprocess.Process):
if bad_msgs:
text = 'Logged unexpected errors:\n\n' + '\n'.join(
str(e) for e in bad_msgs)
pytest.fail(text, pytrace=False)
# We'd like to use pytrace=False here but don't as a WORKAROUND
# for https://github.com/pytest-dev/pytest/issues/1316
pytest.fail(text)
def send_cmd(self, command, count=None):
"""Send a command to the running qutebrowser instance."""