python 3.11 fixes: avoid attrs warning for setting cells

RuntimeWarning: Running interpreter doesn't sufficiently support code object introspection.  Some features like bare super() or accessing __class__ will not work with slotted classes.
This commit is contained in:
Anthony Sottile 2022-01-23 13:55:17 -05:00 committed by Bruno Oliveira
parent 737688eeb9
commit 43d54c8b42
1 changed files with 1 additions and 1 deletions

View File

@ -1026,7 +1026,7 @@ class TestAssert_reprcompare_attrsclass:
assert lines is None
def test_attrs_with_custom_eq(self) -> None:
@attr.define
@attr.define(slots=False)
class SimpleDataObject:
field_a = attr.ib()