We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d13a059 commit b3ccffcCopy full SHA for b3ccffc
Lib/test/test_sys.py
@@ -1093,7 +1093,6 @@ def test_getallocatedblocks(self):
1093
gc.collect()
1094
b = sys.getallocatedblocks()
1095
self.assertLessEqual(b, a)
1096
- gc.collect()
1097
try:
1098
# While we could imagine a Python session where the number of
1099
# multiple buffer objects would exceed the sharing of references,
@@ -1109,6 +1108,7 @@ def test_getallocatedblocks(self):
1109
1108
except AttributeError:
1110
# gettotalrefcount() not available
1111
pass
+ gc.collect()
1112
c = sys.getallocatedblocks()
1113
self.assertIn(c, range(b - 50, b + 50))
1114
0 commit comments