Author: Maciej Fijalkowski <[email protected]>
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):
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit