mirror of
https://github.com/KLayout/klayout.git
synced 2026-08-29 09:20:45 +02:00
Preparing tests for GSI class properties
This commit is contained in:
Vendored
+9
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user