From f5806ab6e353f3a5fc0ad784da79bc17dfd960ce Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Mon, 4 Feb 2008 19:30:05 +0000 Subject: [PATCH] Small adjustments for test compact freelist test. It's no passing on Windows as well. --- Lib/test/test_sys.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index 012611d40be..e9993b28d22 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -373,17 +373,17 @@ class SysModuleTest(unittest.TestCase): self.assertEqual(r[0][2], 0) self.assertEqual(r[1][2], 0) # fill freelists - ints = list(range(12000)) + ints = list(range(10000)) floats = [float(i) for i in ints] del ints del floats # should free more than 200 blocks each r = sys._compact_freelists() - self.assert_(r[0][1] > 200, r[0][1]) - self.assert_(r[1][2] > 200, r[1][1]) + self.assert_(r[0][1] > 100, r[0][1]) + self.assert_(r[1][2] > 100, r[1][1]) - self.assert_(r[0][2] > 200, r[0][2]) - self.assert_(r[1][2] > 200, r[1][2]) + self.assert_(r[0][2] > 100, r[0][2]) + self.assert_(r[1][2] > 100, r[1][2]) def test_main(): test.test_support.run_unittest(SysModuleTest)