Skip to content

Commit 21b6911

Browse files
committed
set verbosity in test_provider_conformance_crosshair
1 parent d531b85 commit 21b6911

File tree

1 file changed

+12
-2
lines changed

1 file changed

+12
-2
lines changed

hypothesis-python/tests/crosshair/test_conformance.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
from crosshair.core import IgnoreAttempt, NotDeterministic, UnexploredPath
1212
from hypothesis_crosshair_provider.crosshair_provider import CrossHairPrimitiveProvider
1313

14-
from hypothesis import settings, strategies as st
14+
from hypothesis import Verbosity, settings, strategies as st
1515
from hypothesis.internal.conjecture.provider_conformance import run_conformance_test
1616

1717

@@ -25,6 +25,16 @@ def test_provider_conformance_crosshair():
2525
run_conformance_test(
2626
CrossHairPrimitiveProvider,
2727
context_manager_exceptions=(IgnoreAttempt, UnexploredPath, NotDeterministic),
28-
settings=settings(max_examples=5, stateful_step_count=10),
28+
settings=settings(
29+
max_examples=5,
30+
stateful_step_count=10,
31+
# It's nice to set Verbosity.verbose unconditionally here so we get
32+
# more information during rare errors without having to retry.
33+
#
34+
# Careful, though: it's possible interactions with crosshair differ
35+
# under verbosity (eg realizing the symbolic debug messages), so
36+
# some errors may only surface with or without verbosity.
37+
verbosity=Verbosity.verbose,
38+
),
2939
_realize_objects=_realize_objects,
3040
)

0 commit comments

Comments
 (0)