[pypy-svn] pypy default: Mark this test as an implementation detail.
arigo
commits-noreply at bitbucket.org
Wed Feb 9 16:22:31 CET 2011
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r41739:fdc5cd4f5273
Date: 2011-02-09 16:22 +0100
http://bitbucket.org/pypy/pypy/changeset/fdc5cd4f5273/
Log: Mark this test as an implementation detail.
diff --git a/lib-python/2.7.0/test/test_list.py b/lib-python/modified-2.7.0/test/test_list.py
copy from lib-python/2.7.0/test/test_list.py
copy to lib-python/modified-2.7.0/test/test_list.py
--- a/lib-python/2.7.0/test/test_list.py
+++ b/lib-python/modified-2.7.0/test/test_list.py
@@ -15,6 +15,10 @@
self.assertEqual(list(''), [])
self.assertEqual(list('spam'), ['s', 'p', 'a', 'm'])
+ # the following test also works with pypy, but eats all your address
+ # space's RAM before raising and takes too long.
+ @test_support.impl_detail("eats all your RAM before working", pypy=False)
+ def test_segfault_1(self):
if sys.maxsize == 0x7fffffff:
# This test can currently only work on 32-bit machines.
# XXX If/when PySequence_Length() returns a ssize_t, it should be
@@ -32,6 +36,7 @@
# http://sources.redhat.com/ml/newlib/2002/msg00369.html
self.assertRaises(MemoryError, list, xrange(sys.maxint // 2))
+ def test_segfault_2(self):
# This code used to segfault in Py2.4a3
x = []
x.extend(-y for y in x)
More information about the Pypy-commit
mailing list