Skip to content

There is no reason to use @st.composite on a function which does not call the provided draw() function internally #187

@mtelka

Description

@mtelka

Testing yields the following warning:

=============================== warnings summary =============================== 
src/hyperlink/test/test_hypothesis.py::TestHypothesisStrategies::test_hostname_labels_long_idn_punycode
  /usr/lib/python3.9/vendor-packages/hypothesis/strategies/_internal/core.py:1943: HypothesisDeprecationWarning: There is no reason to use @st.composite on a function which does not call the provided draw() function internally.
    note_deprecation(

-- Docs: https://docs.pytest.org/en/stable/how-to/capture-warnings.html 
================ 130 passed, 3 deselected, 1 warning in 10.02s =================

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions