Raises `TypeError` on non-*attrs* instances.
(self)
| 1555 | assert fields(C()) is fields(C) |
| 1556 | |
| 1557 | def test_handler_non_attrs_instance(self): |
| 1558 | class="st">""" |
| 1559 | Raises `TypeError` on non-*attrs* instances. |
| 1560 | class="st">""" |
| 1561 | with pytest.raises( |
| 1562 | TypeError, |
| 1563 | match=rclass="st">"Passed object must be a class or attrs instance\.", |
| 1564 | ): |
| 1565 | fields(object()) |
| 1566 | |
| 1567 | def test_handler_non_attrs_class(self): |
| 1568 | class="st">""" |