Skip to content

Commit

Permalink
Stop generating nan values in tests to work with latest attrs (round …
Browse files Browse the repository at this point in the history
…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]>
  • Loading branch information
natsukium and Tinche authored Oct 18, 2024
1 parent 9bce8aa commit 31eff82
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_baseconverter.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,10 @@ def test_simple_roundtrip(cls_and_vals, strat):
assert inst == converter.structure(converter.unstructure(inst), cl)


@given(simple_typed_attrs(defaults=True, newtypes=False), unstructure_strats)
@given(
simple_typed_attrs(defaults=True, newtypes=False, allow_nan=False),
unstructure_strats,
)
def test_simple_roundtrip_defaults(attr_and_strat, strat):
"""
Simple classes with metadata can be unstructured and restructured.
Expand Down

0 comments on commit 31eff82

Please sign in to comment.