Skip to content

Commit

Permalink
Fix test_descr::test_slots by forcing hydration
Browse files Browse the repository at this point in the history
  • Loading branch information
gvanrossum committed Jul 25, 2021
1 parent c843fd8 commit 2c31f5d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Lib/test/test_descr.py
Original file line number Diff line number Diff line change
Expand Up @@ -1279,6 +1279,7 @@ class G(object):
def __eq__(self, other):
return False
g = G()
g.__eq__.__code__.co_code # Hydrate code object
orig_objects = len(gc.get_objects())
for i in range(10):
g==g
Expand Down

0 comments on commit 2c31f5d

Please sign in to comment.