Preparing tests for GSI class properties

This commit is contained in:
Matthias Koefferlein
2025-01-16 20:40:42 +01:00
parent 05ba1743d7
commit 063040695a
4 changed files with 33 additions and 0 deletions
+9
View File
@@ -149,6 +149,15 @@ class BasicTest(unittest.TestCase):
def test_00(self):
# does not work with all Python versions
# (debugging shows that Python calls the setter on the metaclass,
# not on the class itself at least on 3.12)
# # static (class) properties
# pya.A.sp_i = 17
# self.assertEqual(pya.A.sp_i, 18)
# pya.A.sp_i = -1
# self.assertEqual(pya.A.sp_i, 0)
# all references of PA are released now:
ic0 = pya.A.instance_count()