Commit 24f206f2 authored by Stefan Behnel's avatar Stefan Behnel

test fix

parent 9dfe25f6
...@@ -96,10 +96,14 @@ _ERRORS = u""" ...@@ -96,10 +96,14 @@ _ERRORS = u"""
28:16: Constructing complex number not allowed without gil 28:16: Constructing complex number not allowed without gil
29:12: Accessing Python global or builtin not allowed without gil 29:12: Accessing Python global or builtin not allowed without gil
30:8: Backquote expression not allowed without gil 30:8: Backquote expression not allowed without gil
30:9: Operation not allowed without gil
31:15: Assignment of Python object not allowed without gil 31:15: Assignment of Python object not allowed without gil
31:15: Operation not allowed without gil
31:15: Python import not allowed without gil 31:15: Python import not allowed without gil
32:8: Operation not allowed without gil
32:13: Python import not allowed without gil 32:13: Python import not allowed without gil
32:25: Constructing Python list not allowed without gil 32:25: Constructing Python list not allowed without gil
32:25: Operation not allowed without gil
33:17: Iterating over Python object not allowed without gil 33:17: Iterating over Python object not allowed without gil
35:11: Indexing Python object not allowed without gil 35:11: Indexing Python object not allowed without gil
36:11: Slicing Python object not allowed without gil 36:11: Slicing Python object not allowed without gil
......
...@@ -29,7 +29,7 @@ __getattribute__ and __getattr__ special methods for a single class. ...@@ -29,7 +29,7 @@ __getattribute__ and __getattr__ special methods for a single class.
cdef class just_getattribute: cdef class just_getattribute:
def __getattribute__(self,n): def __getattribute__(self,n):
if n == u'bar': if n == 'bar':
return n return n
else: else:
raise AttributeError raise AttributeError
...@@ -39,7 +39,7 @@ cdef class just_getattr: ...@@ -39,7 +39,7 @@ cdef class just_getattr:
def __init__(self): def __init__(self):
self.foo = 10 self.foo = 10
def __getattr__(self,n): def __getattr__(self,n):
if n == u'bar': if n == 'bar':
return n return n
else: else:
raise AttributeError raise AttributeError
...@@ -49,12 +49,12 @@ cdef class both: ...@@ -49,12 +49,12 @@ cdef class both:
def __init__(self): def __init__(self):
self.foo = 10 self.foo = 10
def __getattribute__(self,n): def __getattribute__(self,n):
if n == u'foo': if n == 'foo':
return self.foo return self.foo
else: else:
raise AttributeError raise AttributeError
def __getattr__(self,n): def __getattr__(self,n):
if n == u'bar': if n == 'bar':
return n return n
else: else:
raise AttributeError raise AttributeError
...@@ -13,9 +13,9 @@ doctest = u"""# Python 3 gets all of these right ... ...@@ -13,9 +13,9 @@ doctest = u"""# Python 3 gets all of these right ...
'This is a function docstring.' 'This is a function docstring.'
>>> C.__doc__ >>> C.__doc__
u'This is a class docstring.' 'This is a class docstring.'
>>> CS.__doc__ >>> CS.__doc__
u'This is a subclass docstring.' 'This is a subclass docstring.'
>>> print(CSS.__doc__) >>> print(CSS.__doc__)
None None
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment