Skip to content

Commit b7b3a53

Browse files
committed
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.
1 parent 2ab3aba commit b7b3a53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

testing/test_assertion.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1026,7 +1026,7 @@ def __eq__(self, other): # pragma: no cover
10261026
assert lines is None
10271027

10281028
def test_attrs_with_custom_eq(self) -> None:
1029-
@attr.define
1029+
@attr.define(slots=False)
10301030
class SimpleDataObject:
10311031
field_a = attr.ib()
10321032

0 commit comments

Comments
 (0)