summaryrefslogtreecommitdiff
path: root/tests/run/__getattribute__.pyx
diff options
context:
space:
mode:
Diffstat (limited to 'tests/run/__getattribute__.pyx')
-rw-r--r--tests/run/__getattribute__.pyx18
1 files changed, 9 insertions, 9 deletions
diff --git a/tests/run/__getattribute__.pyx b/tests/run/__getattribute__.pyx
index bc36c5808..e7af8b033 100644
--- a/tests/run/__getattribute__.pyx
+++ b/tests/run/__getattribute__.pyx
@@ -14,9 +14,9 @@ cdef class just_getattribute:
'bar'
>>> a.called
4
- >>> a.invalid
- Traceback (most recent call last):
- AttributeError
+ >>> try: a.invalid
+ ... except AttributeError: pass
+ ... else: print("NOT RAISED!")
>>> a.called
6
"""
@@ -46,9 +46,9 @@ cdef class just_getattr:
'bar'
>>> a.called
1
- >>> a.invalid
- Traceback (most recent call last):
- AttributeError
+ >>> try: a.invalid
+ ... except AttributeError: pass
+ ... else: print("NOT RAISED!")
>>> a.called
2
"""
@@ -77,9 +77,9 @@ cdef class both:
'bar'
>>> (a.called_getattr, a.called_getattribute)
(1, 8)
- >>> a.invalid
- Traceback (most recent call last):
- AttributeError
+ >>> try: a.invalid
+ ... except AttributeError: pass
+ ... else: print("NOT RAISED!")
>>> (a.called_getattr, a.called_getattribute)
(2, 11)
"""