summaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorArmin Rigo <arigo@tunes.org>2020-07-21 18:13:48 +0200
committerArmin Rigo <arigo@tunes.org>2020-07-21 18:13:48 +0200
commitcbf6917094a3f1f5aa84a580e5756857059c6d2e (patch)
tree548e3572ac274d88aa32f7bfd0dd31606e1d8ef7 /testing
parent4a84c1ce423b43d77df51fb465983c8b0daee359 (diff)
downloadcffi-cbf6917094a3f1f5aa84a580e5756857059c6d2e.tar.gz
pff, it seems that "running for more than 0.2 seconds" is also a failure condition,
which hypothesis then tries to reduce, giving not reasonable answer because here one test run of any size takes around 0.2 seconds
Diffstat (limited to 'testing')
-rw-r--r--testing/cffi1/test_function_args.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/testing/cffi1/test_function_args.py b/testing/cffi1/test_function_args.py
index 6a3aaec..52e58a7 100644
--- a/testing/cffi1/test_function_args.py
+++ b/testing/cffi1/test_function_args.py
@@ -1,6 +1,6 @@
import pytest
try:
- from hypothesis import given, settings
+ from hypothesis import given, settings, example
from hypothesis import strategies as st
except ImportError as e:
def test_types():
@@ -39,7 +39,7 @@ else:
@given(st.lists(types), types)
- @settings(max_examples=20)
+ @settings(max_examples=20, deadline=5000) # 5000ms
def test_types(tp_args, tp_result):
global TEST_RUN_COUNTER
print(tp_args, tp_result)