[pypy-commit] pypy array-overallocation-in-nursery: improve the test
fijal
noreply at buildbot.pypy.org
Tue Oct 22 11:33:23 CEST 2013
Author: Maciej Fijalkowski <fijall at gmail.com>
Branch: array-overallocation-in-nursery
Changeset: r67495:877b9bad519b
Date: 2013-10-22 11:31 +0200
http://bitbucket.org/pypy/pypy/changeset/877b9bad519b/
Log: improve the test
diff --git a/rpython/rtyper/lltypesystem/test/test_lltype.py b/rpython/rtyper/lltypesystem/test/test_lltype.py
--- a/rpython/rtyper/lltypesystem/test/test_lltype.py
+++ b/rpython/rtyper/lltypesystem/test/test_lltype.py
@@ -822,6 +822,8 @@
a.used_length = 1
py.test.raises(IndexError, "a[3]")
py.test.raises(IndexError, "a[3] = 43")
+ a.used_length = 5
+ py.test.raises(UninitializedMemoryAccess, "a[3]")
class TestTrackAllocation:
def test_automatic_tracking(self):
More information about the pypy-commit
mailing list