From 43d54c8b4220b53d5618b3b6b557aad778bbec31 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Sun, 23 Jan 2022 13:55:17 -0500 Subject: [PATCH] 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. --- testing/test_assertion.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/test_assertion.py b/testing/test_assertion.py index 317a2beb3..ae053f137 100644 --- a/testing/test_assertion.py +++ b/testing/test_assertion.py @@ -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()