aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'pypy/rpython/test/test_rpbc.py')
-rw-r--r--pypy/rpython/test/test_rpbc.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/pypy/rpython/test/test_rpbc.py b/pypy/rpython/test/test_rpbc.py
index f919bbc6b5..e1621bcf46 100644
--- a/pypy/rpython/test/test_rpbc.py
+++ b/pypy/rpython/test/test_rpbc.py
@@ -1547,7 +1547,7 @@ class BaseTestRPBC(BaseRtypingTest):
def test_always_raising_methods(self):
class Base:
def m(self):
- raise NotImplementedError
+ raise KeyError
class A(Base):
def m(self):
return 42
@@ -1560,11 +1560,11 @@ class BaseTestRPBC(BaseRtypingTest):
o = B()
try:
o.m()
- except NotImplementedError:
- pass
+ except KeyError:
+ assert 0
return B().m()
- self.interpret_raises(NotImplementedError, f, [7])
+ self.interpret_raises(KeyError, f, [7])
def test_possible_missing_attribute_access(self):
py.test.skip("Should explode or give some warning")