Commit 1416fe1
committed
Fix assume condition in
The `adapting-strategies.rst` doc states that the `assume(condition)` function skips test cases where `condition` is `True`, but this appears to be the opposite of the actual behavior. See for example `hypothesis/src/hypothesis.control.py` lines 80-81 where `if not condition` raises an exception. Additionally the code example in `adapting-strategies.rst` states that "b will be nonzero here" after calling `assume(b != 0)`, which suggests the test case will be skipped where condition is `False`. This PR fixes the error by replacing `True` with `False`.adapting-strategies.rst
1 parent 4afeada commit 1416fe1
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
59 | | - | |
| 59 | + | |
60 | 60 | | |
61 | 61 | | |
62 | 62 | | |
| |||
0 commit comments