More than one positional argument raises a TypeError like Python would.
(self)
| 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 | """ |