Commits

Lars Wassermann committed 0340cec

fixing the remaining test

Comments (0)

Files changed (1)

spyvm/test/test_model.py

     w_bytes.setword(3, 42)
     assert w_bytes.getword(3) == 42
     assert w_bytes.getword(0) == 0
-    py.test.raises(IndexError, lambda: w_bytes.getword(20))
+    py.test.raises(AssertionError, lambda: w_bytes.getword(20))
 
 def test_c_word_object():
     w_class = mockclass(space, 0, format=shadow.WORDS)
     w_bytes.setword(3, 42)
     assert w_bytes.getword(3) == 42
     assert w_bytes.getword(0) == 0
-    py.test.raises(IndexError, lambda: w_bytes.getword(20))
+    py.test.raises(AssertionError, lambda: w_bytes.getword(20))
 
 def test_method_lookup():
     class mockmethod(object):