diff --git a/hypothesis-python/tests/nocover/test_build_signature.py b/hypothesis-python/tests/nocover/test_build_signature.py index 146a6ccd6a..15bee1b4fe 100644 --- a/hypothesis-python/tests/nocover/test_build_signature.py +++ b/hypothesis-python/tests/nocover/test_build_signature.py @@ -53,7 +53,9 @@ def use_annotations( pass -def use_signature(self, testA: int, testB: str = None, *, testX: float, testY: List[str]): +def use_signature( + self, testA: int, testB: str = None, *, testX: float, testY: List[str] +): pass @@ -75,7 +77,7 @@ def test_build_using_different_signature_and_annotations(val): assert isinstance(val, ModelWithAlias) -def use_bad_signature(self, testA: 1, testB: "not_a_type", *, testX: float): +def use_bad_signature(self, testA: 1, *, testX: float): pass @@ -87,6 +89,7 @@ def __init__(self, **kwargs): assert set(kwargs) == {"testX"} assert isinstance(kwargs["testX"], float) + @given(st.builds(ModelWithBadAliasSignature)) def test_build_with_non_types_in_signature(val): assert isinstance(val, ModelWithBadAliasSignature)