summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2008-07-06 12:39:09 (GMT)
committerBenjamin Peterson <benjamin@python.org>2008-07-06 12:39:09 (GMT)
commit7f58022219b0cfcb6e1442cbcf7bb3a85dd09134 (patch)
treee769d45ada1569dc564d2572a4f956ae781d409a /Lib
parentf41406409e17344a471c28226c361f983601b56c (diff)
downloadcpython-7f58022219b0cfcb6e1442cbcf7bb3a85dd09134.zip
cpython-7f58022219b0cfcb6e1442cbcf7bb3a85dd09134.tar.gz
cpython-7f58022219b0cfcb6e1442cbcf7bb3a85dd09134.tar.bz2
remove test_compact_freelists from test_sys
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_sys.py19
1 files changed, 0 insertions, 19 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py
index d87bb48..1de3b78 100644
--- a/Lib/test/test_sys.py
+++ b/Lib/test/test_sys.py
@@ -367,25 +367,6 @@ class SysModuleTest(unittest.TestCase):
def test_clear_type_cache(self):
sys._clear_type_cache()
- def test_compact_freelists(self):
- sys._compact_freelists()
- r = sys._compact_freelists()
-## # freed blocks shouldn't change
-## self.assertEqual(r[0][2], 0)
-## self.assertEqual(r[1][2], 0)
-## # fill freelists
-## 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] > 100, r[0][1])
-## self.assert_(r[1][2] > 100, r[1][1])
-##
-## self.assert_(r[0][2] > 100, r[0][2])
-## self.assert_(r[1][2] > 100, r[1][2])
-
def test_ioencoding(self):
import subprocess,os
env = dict(os.environ)