diff --git a/hypothesis-python/tests/pytest/test_capture.py b/hypothesis-python/tests/pytest/test_capture.py index 866907df88..1b67d91e5d 100644 --- a/hypothesis-python/tests/pytest/test_capture.py +++ b/hypothesis-python/tests/pytest/test_capture.py @@ -81,7 +81,8 @@ def test_output_emitting_unicode(testdir, monkeypatch): script, '--verbose', '--capture=no') out = '\n'.join(result.stdout.lines) assert 'test_emits_unicode' in out - assert escape_unicode_characters(hunichr(1001)) in out + assert hunichr(1001) in out or \ + escape_unicode_characters(hunichr(1001)) in out assert result.ret == 0