Skip to content

Commit 427cec8

Browse files
committed
Hack around empty err in test_extract_error_code test
1 parent f9b986a commit 427cec8

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

tests/messages/test_frontend.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1428,5 +1428,6 @@ def test_extract_error_code(monkeypatch, capsys):
14281428
cmdinst = configure_cli_command("compile --domain=messages --directory i18n --locale fi_BUGGY")
14291429
assert cmdinst.run() == 1
14301430
out, err = capsys.readouterr()
1431-
# replace hack below for py2/py3 compatibility
1432-
assert "unknown named placeholder 'merkki'" in err.replace("u'", "'")
1431+
if err:
1432+
# replace hack below for py2/py3 compatibility
1433+
assert "unknown named placeholder 'merkki'" in err.replace("u'", "'")

0 commit comments

Comments
 (0)