Skip to content

Commit 47427a7

Browse files
committed
test_malformed_sigs: try making st_der more robust
hypothesis sometimes timeouts when creating the large signatures when on Python 2.6, try to workaround it by generating smaller structures (but still larger/more complex than anything we normally have to deal with)
1 parent d64e10c commit 47427a7

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ecdsa/test_malformed_sigs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,8 @@ def st_der():
246246
st.builds(lambda tag, x:
247247
encode_constructed(tag, x),
248248
st.integers(min_value=0, max_value=0x3f),
249-
st.one_of(children))
249+
st.one_of(children)),
250+
max_leaves=40
250251
)
251252

252253

0 commit comments

Comments
 (0)