[pypy-commit] pypy default: set the hypothesis deadline of this test explicitly to None (it's slow, because
cfbolz
pypy.commits at gmail.com
Sat Feb 3 05:59:35 EST 2018
Author: Carl Friedrich Bolz-Tereick <cfbolz at gmx.de>
Branch:
Changeset: r93740:d1c1e6659eab
Date: 2018-02-03 11:58 +0100
http://bitbucket.org/pypy/pypy/changeset/d1c1e6659eab/
Log: set the hypothesis deadline of this test explicitly to None (it's
slow, because looking up the codec the first time is slow, not
anything related to the test). It will still be stopped after less
than 100 examples by the overall timeout of 60s
diff --git a/pypy/module/_io/test/test_interp_textio.py b/pypy/module/_io/test/test_interp_textio.py
--- a/pypy/module/_io/test/test_interp_textio.py
+++ b/pypy/module/_io/test/test_interp_textio.py
@@ -1,6 +1,6 @@
import pytest
try:
- from hypothesis import given, strategies as st
+ from hypothesis import given, strategies as st, settings
except ImportError:
pytest.skip("hypothesis required")
import os
@@ -29,6 +29,7 @@
@given(data=st_readline(),
mode=st.sampled_from(['\r', '\n', '\r\n', '']))
+ at settings(deadline=None)
def test_readline(space, data, mode):
txt, limits = data
w_stream = W_BytesIO(space)
More information about the pypy-commit
mailing list