[Python-checkins] r64757 - python/trunk/Lib/test/test_sys.py

benjamin.peterson python-checkins at python.org
Sun Jul 6 14:39:09 CEST 2008


Author: benjamin.peterson
Date: Sun Jul  6 14:39:09 2008
New Revision: 64757

Log:
remove test_compact_freelists from test_sys

Modified:
   python/trunk/Lib/test/test_sys.py

Modified: python/trunk/Lib/test/test_sys.py
==============================================================================
--- python/trunk/Lib/test/test_sys.py	(original)
+++ python/trunk/Lib/test/test_sys.py	Sun Jul  6 14:39:09 2008
@@ -367,25 +367,6 @@
     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)


More information about the Python-checkins mailing list