Skip to content

Commit

Permalink
test_po: put error message in the exception message
Browse files Browse the repository at this point in the history
pytest hides stdout/err by default
  • Loading branch information
lazka committed Jan 10, 2017
1 parent 8b850ce commit 54573e6
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions quodlibet/tests/test_po.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
import quodlibet
from quodlibet.util.path import iscommand
from quodlibet.util.string.titlecase import human_title
from quodlibet.util import print_w
from gdist import gettextutil


Expand Down Expand Up @@ -267,11 +266,10 @@ def format_occurrences(e):
'"%s" - "%s" (%s)' % (e.msgid, e.msgstr, format_occurrences(e))
for e in fails
]
for message in messages:
print_w(message)

self.fail(
"One or more messages did not pass (%s).\n"
"Please check the warning messages above." % reason)
"One or more messages did not pass (%s).\n%s" % (
reason, "\n".join(messages)))

def test_original_punctuation_present(self):
if polib is None:
Expand Down

0 comments on commit 54573e6

Please sign in to comment.