Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Gwenaël Samain
cython
Commits
24f206f2
Commit
24f206f2
authored
Oct 10, 2009
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test fix
parent
9dfe25f6
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
6 deletions
+10
-6
tests/errors/nogil.pyx
tests/errors/nogil.pyx
+4
-0
tests/run/__getattribute__.pyx
tests/run/__getattribute__.pyx
+4
-4
tests/run/r_docstrings.pyx
tests/run/r_docstrings.pyx
+2
-2
No files found.
tests/errors/nogil.pyx
View file @
24f206f2
...
@@ -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
...
...
tests/run/__getattribute__.pyx
View file @
24f206f2
...
@@ -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
tests/run/r_docstrings.pyx
View file @
24f206f2
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment