MCPcopy
hub / github.com/python-attrs/attrs / test_too_many_pos_args

Method test_too_many_pos_args

tests/test_funcs.py:826–834  ·  view source on GitHub ↗

More than one positional argument raises a TypeError like Python would.

(self)

Source from the content-addressed store, hash-verified

824 evolve(x=1)
825
826 def test_too_many_pos_args(self):
827 """
828 More than one positional argument raises a TypeError like Python would.
829 """
830 with pytest.raises(
831 TypeError,
832 match=r"evolve\(\) takes 1 positional argument, but 2 were given",
833 ):
834 evolve(1, 2)
835
836 def test_can_change_inst(self):
837 """

Callers

nothing calls this directly

Calls 1

evolveFunction · 0.90

Tested by

no test coverage detected