Skip to content

Commit

Permalink
Loosen assertion a bit for musl
Browse files Browse the repository at this point in the history
  • Loading branch information
chriskuehl committed Jun 17, 2016
1 parent a2df72a commit 4ce5ec4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/cli_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,10 @@ def test_exits_invalid_with_invalid_args():
proc = Popen(('dumb-init', '--yolo', '/bin/true'), stderr=PIPE)
_, stderr = proc.communicate()
assert proc.returncode == 1
assert stderr == b"dumb-init: unrecognized option '--yolo'\n"
assert stderr in (
b"dumb-init: unrecognized option '--yolo'\n", # glibc
b'dumb-init: unrecognized option: yolo\n', # musl
)


@pytest.mark.parametrize('flag', ['-h', '--help'])
Expand Down

0 comments on commit 4ce5ec4

Please sign in to comment.