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
Labels
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Commits
Open sidebar
nexedi
cython
Commits
42a20048
Commit
42a20048
authored
May 15, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test fix
parent
4b25492f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
tests/run/r_hordijk1.pyx
tests/run/r_hordijk1.pyx
+7
-6
No files found.
tests/run/r_hordijk1.pyx
View file @
42a20048
__doc__
=
u"""
__doc__
=
u"""
>>> try:
>>> try:
... s = Spam()
... s = Spam()
... except
Standard
Error, e:
... except
Key
Error, e:
... print("Exception: %s" % e)
... print("Exception: %s" % e)
... else:
... else:
... print("Did not raise the expected exception")
... print("Did not raise the expected exception")
Exception:
This is not a spanish inquisition
Exception:
u'This is not a spanish inquisition'
"""
"""
import
sys
import
sys
if
sys
.
version_info
[
0
]
>=
3
:
if
sys
.
version_info
[
0
]
>=
3
:
__doc__
=
__doc__
.
replace
(
u"Exception, e"
,
u"Exception as e"
)
__doc__
=
__doc__
.
replace
(
u"Error, e"
,
u"Error as e"
)
__doc__
=
__doc__
.
replace
(
u" u'"
,
u" '"
)
cdef
extern
from
"Python.h"
:
cdef
extern
from
"Python.h"
:
ctypedef
class
types
.
ListType
[
object
PyListObject
]:
ctypedef
class
__builtin__
.
list
[
object
PyListObject
]:
pass
pass
cdef
class
Spam
(
ListType
):
cdef
class
Spam
(
list
):
def
__init__
(
self
):
def
__init__
(
self
):
raise
StandardError
(
"This is not a spanish inquisition"
)
raise
KeyError
(
u
"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