mirror of https://github.com/python/cpython
Small adjustments for test compact freelist test. It's no passing on Windows as well.
This commit is contained in:
parent
f4033ab245
commit
f5806ab6e3
|
@ -373,17 +373,17 @@ class SysModuleTest(unittest.TestCase):
|
||||||
self.assertEqual(r[0][2], 0)
|
self.assertEqual(r[0][2], 0)
|
||||||
self.assertEqual(r[1][2], 0)
|
self.assertEqual(r[1][2], 0)
|
||||||
# fill freelists
|
# fill freelists
|
||||||
ints = list(range(12000))
|
ints = list(range(10000))
|
||||||
floats = [float(i) for i in ints]
|
floats = [float(i) for i in ints]
|
||||||
del ints
|
del ints
|
||||||
del floats
|
del floats
|
||||||
# should free more than 200 blocks each
|
# should free more than 200 blocks each
|
||||||
r = sys._compact_freelists()
|
r = sys._compact_freelists()
|
||||||
self.assert_(r[0][1] > 200, r[0][1])
|
self.assert_(r[0][1] > 100, r[0][1])
|
||||||
self.assert_(r[1][2] > 200, r[1][1])
|
self.assert_(r[1][2] > 100, r[1][1])
|
||||||
|
|
||||||
self.assert_(r[0][2] > 200, r[0][2])
|
self.assert_(r[0][2] > 100, r[0][2])
|
||||||
self.assert_(r[1][2] > 200, r[1][2])
|
self.assert_(r[1][2] > 100, r[1][2])
|
||||||
|
|
||||||
def test_main():
|
def test_main():
|
||||||
test.test_support.run_unittest(SysModuleTest)
|
test.test_support.run_unittest(SysModuleTest)
|
||||||
|
|
Loading…
Reference in New Issue