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
f313e646
Commit
f313e646
authored
Apr 08, 2012
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
minor test cleanups
parent
e2f54075
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
tests/run/r_hordijk1.pyx
tests/run/r_hordijk1.pyx
+4
-5
No files found.
tests/run/r_hordijk1.pyx
View file @
f313e646
__doc__
=
u
"""
__doc__
=
"""
>>> try:
... s = Spam()
... except KeyError, e:
... print("Exception: %s" % e)
... else:
... print("Did not raise the expected exception")
Exception:
u
'This is not a spanish inquisition'
Exception: 'This is not a spanish inquisition'
"""
import
sys
if
sys
.
version_info
[
0
]
>=
3
:
__doc__
=
__doc__
.
replace
(
u"Error, e"
,
u"Error as e"
)
__doc__
=
__doc__
.
replace
(
u" u'"
,
u" '"
)
__doc__
=
__doc__
.
replace
(
"Error, e"
,
"Error as e"
)
cdef
extern
from
"Python.h"
:
ctypedef
class
__builtin__
.
list
[
object
PyListObject
]:
...
...
@@ -19,4 +18,4 @@ cdef extern from "Python.h":
cdef
class
Spam
(
list
):
def
__init__
(
self
):
raise
KeyError
(
u
"This is not a spanish inquisition"
)
raise
KeyError
(
"This is not a spanish inquisition"
)
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