Skip to content

Commit 31eff82

Browse files
natsukiumTinche
andauthored
Stop generating nan values in tests to work with latest attrs (round 2) (#585)
* Stop generating nan values in tests to work with latest attrs (round 2) this is a follow up commit to 96ed9a1 * Reformat --------- Co-authored-by: Tin Tvrtković <[email protected]>
1 parent 9bce8aa commit 31eff82

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tests/test_baseconverter.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ def test_simple_roundtrip(cls_and_vals, strat):
2727
assert inst == converter.structure(converter.unstructure(inst), cl)
2828

2929

30-
@given(simple_typed_attrs(defaults=True, newtypes=False), unstructure_strats)
30+
@given(
31+
simple_typed_attrs(defaults=True, newtypes=False, allow_nan=False),
32+
unstructure_strats,
33+
)
3134
def test_simple_roundtrip_defaults(attr_and_strat, strat):
3235
"""
3336
Simple classes with metadata can be unstructured and restructured.

0 commit comments

Comments
 (0)