[pypy-svn] r47524 - pypy/dist/pypy/objspace/std/test
elmom at codespeak.net
elmom at codespeak.net
Thu Oct 18 01:14:57 CEST 2007
Author: elmom
Date: Thu Oct 18 01:14:55 2007
New Revision: 47524
Modified:
pypy/dist/pypy/objspace/std/test/test_blistimplementation.py
Log:
Skip properly and add a test
Modified: pypy/dist/pypy/objspace/std/test/test_blistimplementation.py
==============================================================================
--- pypy/dist/pypy/objspace/std/test/test_blistimplementation.py (original)
+++ pypy/dist/pypy/objspace/std/test/test_blistimplementation.py Thu Oct 18 01:14:55 2007
@@ -1,11 +1,12 @@
from pypy.objspace.std.test.test_dictmultiobject import FakeSpace
from pypy.objspace.std.test.test_listmultiobject import \
BaseAppTest_ListMultiObject
-from pypy.objspace.std.blistimplementation import BListImplementation
import py.test
py.test.skip('Not implemented yet')
+from pypy.objspace.std.blistimplementation import BListImplementation
+
## Most of these tests are from the reference implementation
def _set_get_limit(limit=None):
@@ -36,6 +37,12 @@
little_list = [0]
# big_list = little_list * 2**512 #XXX App-level OverflowError
big_list = little_list * 2**30
+
+ def test_very_very_long_list(self):
+ big_list = [0] * 2**30
+ for i in range(20):
+ big_list = big_list * 2**30
+ assert len(big_list) > 2**512
def test_very_long_list_insert(self):
little_list = [0]
More information about the Pypy-commit
mailing list