summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_capi.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_capi.py')
-rw-r--r--Lib/test/test_capi.py14
1 files changed, 0 insertions, 14 deletions
diff --git a/Lib/test/test_capi.py b/Lib/test/test_capi.py
index 7d766ec..40750cc 100644
--- a/Lib/test/test_capi.py
+++ b/Lib/test/test_capi.py
@@ -724,20 +724,6 @@ class CAPITest(unittest.TestCase):
with self.subTest(name=name):
self.assertTrue(hasattr(ctypes.pythonapi, name))
- def test_clear_managed_dict(self):
-
- class C:
- def __init__(self):
- self.a = 1
-
- c = C()
- _testcapi.clear_managed_dict(c)
- self.assertEqual(c.__dict__, {})
- c = C()
- self.assertEqual(c.__dict__, {'a':1})
- _testcapi.clear_managed_dict(c)
- self.assertEqual(c.__dict__, {})
-
class TestPendingCalls(unittest.TestCase):