Skip to content

Commit

Permalink
WIP: hack for test_extract_error_code test
Browse files Browse the repository at this point in the history
  • Loading branch information
akx committed Jan 25, 2022
1 parent 520c7e1 commit 8421ff5
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions tests/messages/test_frontend.py
Expand Up @@ -1428,5 +1428,6 @@ def test_extract_error_code(monkeypatch, capsys):
cmdinst = configure_cli_command("compile --domain=messages --directory i18n --locale fi_BUGGY")
assert cmdinst.run() == 1
out, err = capsys.readouterr()
# replace hack below for py2/py3 compatibility
assert "unknown named placeholder 'merkki'" in err.replace("u'", "'")
if err:
# replace hack below for py2/py3 compatibility
assert "unknown named placeholder 'merkki'" in err.replace("u'", "'")

0 comments on commit 8421ff5

Please sign in to comment.