[pypy-svn] r10035 - pypy/dist/lib-python-2.3.4/test

tismer at codespeak.net tismer at codespeak.net
Mon Mar 21 23:45:38 CET 2005


Author: tismer
Date: Mon Mar 21 23:45:38 2005
New Revision: 10035

Modified:
   pypy/dist/lib-python-2.3.4/test/pickletester.py
Log:
removed one impractical test (cPickle) and three tests
which computefor ages (xxx prefix). The latter might be re-enabled
when PyPy gets noticably faster.

Modified: pypy/dist/lib-python-2.3.4/test/pickletester.py
==============================================================================
--- pypy/dist/lib-python-2.3.4/test/pickletester.py	(original)
+++ pypy/dist/lib-python-2.3.4/test/pickletester.py	Mon Mar 21 23:45:38 2005
@@ -1,3 +1,9 @@
+# Notes about changes in this file:
+# a prefix of "dont_" means the test makes no sense,
+# because we don't use cPickle at all.
+# "xxx_" means it works and can be done, but takes ages.
+# When PyPy gets really fast, we should remove "xxx_".
+
 import unittest
 import pickle
 import cPickle
@@ -513,7 +519,7 @@
         data = 'I' + str(maxint64) + 'JUNK\n.'
         self.assertRaises(ValueError, self.loads, data)
 
-    def test_long(self):
+    def xxx_test_long(self):
         for proto in protocols:
             # 256 bytes is where LONG4 begins.
             for nbits in 1, 8, 8*254, 8*255, 8*256, 8*257:
@@ -738,7 +744,7 @@
         self.produce_global_ext(0x7fffffff, pickle.EXT4)  # largest EXT4 code
         self.produce_global_ext(0x12abcdef, pickle.EXT4)  # check endianness
 
-    def test_list_chunking(self):
+    def xxx_test_list_chunking(self):
         n = 10  # too small to chunk
         x = range(n)
         for proto in protocols:
@@ -760,7 +766,7 @@
             else:
                 self.failUnless(num_appends >= 2)
 
-    def test_dict_chunking(self):
+    def xxx_test_dict_chunking(self):
         n = 10  # too small to chunk
         x = dict.fromkeys(range(n))
         for proto in protocols:



More information about the Pypy-commit mailing list