If `eq` is False for an attribute, ignore that attribute.
(self, slots)
| 124 | |
| 125 | @given(booleans()) |
| 126 | def test_eq_ignore_attrib(self, slots): |
| 127 | """ |
| 128 | If `eq` is False for an attribute, ignore that attribute. |
| 129 | """ |
| 130 | C = make_class( |
| 131 | "C", {"a": attr.ib(eq=False), "b": attr.ib()}, slots=slots |
| 132 | ) |
| 133 | |
| 134 | assert C(1, 2) == C(2, 2) |
| 135 | |
| 136 | @pytest.mark.parametrize("cls", [EqC, EqCSlots]) |
| 137 | def test_equal(self, cls): |
nothing calls this directly
no test coverage detected