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
Kirill Smelkov
cython
Commits
8bfd3ed6
Commit
8bfd3ed6
authored
May 15, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
lots of test fixes for Py3
parent
481d7bec
Changes
7
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
31 additions
and
11 deletions
+31
-11
tests/run/kostyrka2.pyx
tests/run/kostyrka2.pyx
+5
-1
tests/run/multass.pyx
tests/run/multass.pyx
+5
-1
tests/run/powop.pyx
tests/run/powop.pyx
+4
-0
tests/run/r_addint.pyx
tests/run/r_addint.pyx
+9
-5
tests/run/r_barbieri1.pyx
tests/run/r_barbieri1.pyx
+1
-1
tests/run/r_bowden1.pyx
tests/run/r_bowden1.pyx
+6
-2
tests/run/r_huss3.pyx
tests/run/r_huss3.pyx
+1
-1
No files found.
tests/run/kostyrka2.pyx
View file @
8bfd3ed6
__doc__
=
u"""
__doc__
=
u"""
>>> x = X()
>>> x = X()
>>> x.slots
>>> x.slots
['']
[
b
'']
"""
"""
import
sys
if
sys
.
version_info
[
0
]
<
3
:
__doc__
=
__doc__
.
replace
(
u" b'"
,
u" '"
)
class
X
:
class
X
:
slots
=
[
""
,
]
slots
=
[
""
,
]
tests/run/multass.pyx
View file @
8bfd3ed6
...
@@ -4,11 +4,15 @@ __doc__ = u"""
...
@@ -4,11 +4,15 @@ __doc__ = u"""
>>> g()
>>> g()
(1, 1, 2, 2, 3, 3)
(1, 1, 2, 2, 3, 3)
>>> h()
>>> h()
(1,
'test', 3, 1,
'test', 3)
(1,
b'test', 3, 1, b
'test', 3)
>>> j()
>>> j()
(2, 1, 4, 2, 6, 3)
(2, 1, 4, 2, 6, 3)
"""
"""
import
sys
if
sys
.
version_info
[
0
]
<
3
:
__doc__
=
__doc__
.
replace
(
u" b'"
,
u" '"
)
def
f
():
def
f
():
cdef
object
obj1a
,
obj2a
,
obj3a
,
obj1b
,
obj2b
,
obj3b
cdef
object
obj1a
,
obj2a
,
obj3a
,
obj1b
,
obj2b
,
obj3b
obj1b
,
obj2b
,
obj3b
=
1
,
2
,
3
obj1b
,
obj2b
,
obj3b
=
1
,
2
,
3
...
...
tests/run/powop.pyx
View file @
8bfd3ed6
...
@@ -15,6 +15,10 @@ __doc__ = u"""
...
@@ -15,6 +15,10 @@ __doc__ = u"""
True
True
"""
"""
import
sys
if
sys
.
version_info
[
0
]
>=
3
:
__doc__
=
__doc__
.
replace
(
u"2L"
,
u"2"
)
def
f
(
obj2
,
obj3
):
def
f
(
obj2
,
obj3
):
cdef
float
flt1
,
flt2
,
flt3
cdef
float
flt1
,
flt2
,
flt3
flt2
,
flt3
=
obj2
,
obj3
flt2
,
flt3
=
obj2
,
obj3
...
...
tests/run/r_addint.pyx
View file @
8bfd3ed6
__doc__
=
u"""
__doc__
=
u"""
>>> def test(a, b):
>>> def test(a, b):
... print
a, b, add(a, b
)
... print
((a, b, add(a, b))
)
>>> test(1, 2)
>>> test(1, 2)
1 2 3
(1, 2, 3)
>>> test(17.3, 88.6)
>>> test(17.3, 88.6)
17.3 88.6 105.9
(17.3, 88.6, 105.9)
>>> test(
"eggs",
"spam")
>>> test(
u"eggs", u
"spam")
eggs spam eggsspam
(u'eggs', u'spam', u'eggsspam')
"""
"""
import
sys
if
sys
.
version_info
[
0
]
>=
3
:
__doc__
=
__doc__
.
replace
(
u" u'"
,
u" '"
)
def
add
(
x
,
y
):
def
add
(
x
,
y
):
return
x
+
y
return
x
+
y
tests/run/r_barbieri1.pyx
View file @
8bfd3ed6
...
@@ -8,7 +8,7 @@ __doc__ = u"""
...
@@ -8,7 +8,7 @@ __doc__ = u"""
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"Exception, e"
,
u"Exception as e"
)
cdef
class
A
:
cdef
class
A
:
def
__cinit__
(
self
):
def
__cinit__
(
self
):
...
...
tests/run/r_bowden1.pyx
View file @
8bfd3ed6
__doc__
=
u"""
__doc__
=
u"""
>>> f(100)
>>> f(100)
101
101
L
>>> g(3000000000)
>>> g(3000000000)
3000000001
3000000001
L
"""
"""
import
sys
if
sys
.
version_info
[
0
]
>=
3
:
__doc__
=
__doc__
.
replace
(
u"L"
,
u""
)
def
f
(
x
):
def
f
(
x
):
cdef
unsigned
long
long
ull
cdef
unsigned
long
long
ull
ull
=
x
ull
=
x
...
...
tests/run/r_huss3.pyx
View file @
8bfd3ed6
...
@@ -12,7 +12,7 @@ ValueError:
...
@@ -12,7 +12,7 @@ ValueError:
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"Exception, e"
,
u"Exception as e"
)
def
bar
():
def
bar
():
try
:
try
:
...
...
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