MCPcopy Index your code
hub / github.com/python-attrs/attrs / test_no_inst

Method test_no_inst

tests/test_funcs.py:817–824  ·  view source on GitHub ↗

Missing inst argument raises a TypeError like Python would.

(self)

Source from the content-addressed store, hash-verified

815 )
816
817 def test_no_inst(self):
818 """
819 Missing inst argument raises a TypeError like Python would.
820 """
821 with pytest.raises(
822 TypeError, match=r"evolve\(\) takes 1 positional argument"
823 ):
824 evolve(x=1)
825
826 def test_too_many_pos_args(self):
827 """

Callers

nothing calls this directly

Calls 1

evolveFunction · 0.90

Tested by

no test coverage detected