(self)
| 3979 | assert_warns(Warning, coll.append, B()) |
| 3980 | |
| 3981 | def test_ad_hoc_lazy(self): |
| 3982 | A, B = self.A, self.B |
| 3983 | a1 = A() |
| 3984 | coll = a1.bs |
| 3985 | a1.bs.append(B()) |
| 3986 | state = attributes.instance_state(a1) |
| 3987 | _set_callable(state, state.dict, "bs", lambda: B()) |
| 3988 | assert_warns(Warning, coll.append, B()) |
nothing calls this directly
no test coverage detected