If these is passed ordered attrs, their order respect instead of the counter.
(self)
| 327 | assert "C(x=5)" == repr(C()) |
| 328 | |
| 329 | def test_these_ordered(self): |
| 330 | """ |
| 331 | If these is passed ordered attrs, their order respect instead of the |
| 332 | counter. |
| 333 | """ |
| 334 | b = attr.ib(default=2) |
| 335 | a = attr.ib(default=1) |
| 336 | |
| 337 | @attr.s(these={"a": a, "b": b}) |
| 338 | class C: |
| 339 | pass |
| 340 | |
| 341 | assert "C(a=1, b=2)" == repr(C()) |
| 342 | |
| 343 | def test_multiple_inheritance_old(self): |
| 344 | """ |