Skip to content

Commit 81976ce

Browse files
committed
test_preconf: always include bools and ints
1 parent f605aad commit 81976ce

File tree

1 file changed

+2
-10
lines changed

1 file changed

+2
-10
lines changed

tests/test_preconf.py

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -198,26 +198,18 @@ def everythings(
198198
def native_unions(
199199
draw: DrawFn,
200200
include_strings=True,
201-
include_bools=True,
202-
include_ints=True,
203201
include_floats=True,
204202
include_nones=True,
205203
include_bytes=True,
206204
include_datetimes=True,
207205
include_objectids=False,
208206
include_literals=True,
209207
) -> tuple[Any, Any]:
210-
types = []
211-
strats = {}
208+
types = [bool, int]
209+
strats = {bool: booleans(), int: integers()}
212210
if include_strings:
213211
types.append(str)
214212
strats[str] = text()
215-
if include_bools:
216-
types.append(bool)
217-
strats[bool] = booleans()
218-
if include_ints:
219-
types.append(int)
220-
strats[int] = integers()
221213
if include_floats:
222214
types.append(float)
223215
strats[float] = floats(allow_nan=False)

0 commit comments

Comments
 (0)