summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_opcache.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_opcache.py')
-rw-r--r--Lib/test/test_opcache.py13
1 files changed, 1 insertions, 12 deletions
diff --git a/Lib/test/test_opcache.py b/Lib/test/test_opcache.py
index 5fb4b81..8829c9a 100644
--- a/Lib/test/test_opcache.py
+++ b/Lib/test/test_opcache.py
@@ -1044,20 +1044,13 @@ class TestInstanceDict(unittest.TestCase):
c.a = 1
c.b = 2
c.__dict__
- self.assertIs(
- _testinternalcapi.get_object_dict_values(c),
- None
- )
+ self.assertEqual(c.__dict__, {"a":1, "b": 2})
def test_dict_dematerialization(self):
c = C()
c.a = 1
c.b = 2
c.__dict__
- self.assertIs(
- _testinternalcapi.get_object_dict_values(c),
- None
- )
for _ in range(100):
c.a
self.assertEqual(
@@ -1072,10 +1065,6 @@ class TestInstanceDict(unittest.TestCase):
d = c.__dict__
for _ in range(100):
c.a
- self.assertIs(
- _testinternalcapi.get_object_dict_values(c),
- None
- )
self.assertIs(c.__dict__, d)
def test_dict_dematerialization_copy(self):