[PATCH 1 of 2 STABLE] hghave.py: make Hypothesis testing more sensitive
timeless
timeless at mozdev.org
Tue Mar 8 14:33:06 UTC 2016
# HG changeset patch
# User timeless <timeless at mozdev.org>
# Date 1457447490 0
# Tue Mar 08 14:31:30 2016 +0000
# Branch stable
# Node ID 7ff966bbfb67fd81003a15748bf2cab91cf59065
# Parent 8949d73b2e1f5c0b9c4c6c195bef2fe284349c6e
hghave.py: make Hypothesis testing more sensitive
On my system, I have some Hypothesis, but apparently not a working version,
thus the tests fail:
test-encoding.t.err
@@ -278,8 +278,9 @@
#if hypothesis
>>> from hypothesishelpers import *
+ ImportError('No module named settings',)
>>> from mercurial import encoding
>>> roundtrips(st.binary(), encoding.fromutf8b, encoding.toutf8b)
- Round trip OK
+ NameError("name 'roundtrips' is not defined",)
#endif
diff --git a/tests/hghave.py b/tests/hghave.py
--- a/tests/hghave.py
+++ b/tests/hghave.py
@@ -474,6 +474,7 @@
try:
import hypothesis
hypothesis.given
+ import hypothesis.settings
return True
except ImportError:
return False
More information about the Mercurial-devel
mailing list