Author: Armin Rigo <ar...@tunes.org>
Branch: 
Changeset: r90888:e21e09d948c3
Date: 2017-04-01 10:45 +0200
http://bitbucket.org/pypy/pypy/changeset/e21e09d948c3/

Log:    Fix test (expecting AssertionError now for out-of-bounds unsafe
        access)

diff --git a/rpython/rlib/rstrategies/test/test_rstrategies.py 
b/rpython/rlib/rstrategies/test/test_rstrategies.py
--- a/rpython/rlib/rstrategies/test/test_rstrategies.py
+++ b/rpython/rlib/rstrategies/test/test_rstrategies.py
@@ -204,7 +204,7 @@
     if is_safe:
         py.test.raises(IndexError, s.fetch, l, -1)
     else:
-        assert s.fetch(l, -1) == s.fetch(l, size - 1)
+        py.test.raises(AssertionError, s.fetch, l, -1)
 
 def test_init_Empty():
     l = W_List(EmptyStrategy, 0)
@@ -249,7 +249,7 @@
     if is_safe:
         py.test.raises(IndexError, s.store, l, -1, stored_value)
     else:
-        store_test(-1)
+        py.test.raises(AssertionError, s.store, l, -1, stored_value)
 
 def test_store_Nil():
     do_test_store(NilStrategy, stored_value=w_nil)
_______________________________________________
pypy-commit mailing list
pypy-commit@python.org
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to