##// END OF EJS Templates
tests: pass settings of hypothesis by with statement...
Yuya Nishihara -
r27999:b30b4080 default
parent child Browse files
Show More
@@ -33,7 +33,8 b' def check(*args, **kwargs):'
33 # Fixed in version 1.13 (released 2015 october 29th)
33 # Fixed in version 1.13 (released 2015 october 29th)
34 f.__module__ = '__anon__'
34 f.__module__ = '__anon__'
35 try:
35 try:
36 given(*args, settings=settings(max_examples=2000), **kwargs)(f)()
36 with settings(max_examples=2000):
37 given(*args, **kwargs)(f)()
37 except Exception:
38 except Exception:
38 traceback.print_exc(file=sys.stdout)
39 traceback.print_exc(file=sys.stdout)
39 sys.exit(1)
40 sys.exit(1)
General Comments 0
You need to be logged in to leave comments. Login now