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
cf9b9b59
Commit
cf9b9b59
authored
May 16, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
more test fixes
parent
e990db84
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
23 additions
and
19 deletions
+23
-19
tests/run/append.pyx
tests/run/append.pyx
+2
-2
tests/run/r_mcintyre1.pyx
tests/run/r_mcintyre1.pyx
+2
-2
tests/run/r_pyclassdefault.pyx
tests/run/r_pyclassdefault.pyx
+2
-2
tests/run/strconstinclass.pyx
tests/run/strconstinclass.pyx
+6
-2
tests/run/strfunction.pyx
tests/run/strfunction.pyx
+1
-1
tests/run/unicodefunction.pyx
tests/run/unicodefunction.pyx
+1
-1
tests/run/unicodeliterals.pyx
tests/run/unicodeliterals.pyx
+3
-3
tests/run/unicodeliteralsdefault.pyx
tests/run/unicodeliteralsdefault.pyx
+3
-3
tests/run/unicodeliteralslatin1.pyx
tests/run/unicodeliteralslatin1.pyx
+3
-3
No files found.
tests/run/append.pyx
View file @
cf9b9b59
...
...
@@ -23,7 +23,7 @@ None
class
A
:
def
append
(
self
,
x
):
print
"appending"
print
u
"appending"
return
x
class
B
(
list
):
...
...
@@ -38,6 +38,6 @@ def test_append(L):
try
:
print
L
.
append
(
5
,
6
)
except
TypeError
:
print
"got error"
print
u
"got error"
return
L
tests/run/r_mcintyre1.pyx
View file @
cf9b9b59
...
...
@@ -8,5 +8,5 @@ __doc__ = u"""
class
Bicycle
:
def
fall_off
(
self
,
how_hard
=
"extremely"
):
print
"Falling off"
,
how_hard
,
"hard"
def
fall_off
(
self
,
how_hard
=
u
"extremely"
):
print
u"Falling off"
,
how_hard
,
u
"hard"
tests/run/r_pyclassdefault.pyx
View file @
cf9b9b59
...
...
@@ -14,6 +14,6 @@ class CoconutCarrier:
if
name
is
not
None
:
print
u"This swallow is called"
,
name
if
airspeed
is
not
None
:
print
u"This swallow is flying at"
,
airspeed
,
"furlongs per fortnight"
print
u"This swallow is flying at"
,
airspeed
,
u
"furlongs per fortnight"
if
coconuts
is
not
None
:
print
u"This swallow is carrying"
,
coconuts
,
"coconuts"
print
u"This swallow is carrying"
,
coconuts
,
u
"coconuts"
tests/run/strconstinclass.pyx
View file @
cf9b9b59
__doc__
=
u"""
>>> c = C()
>>>
print(c.x)
foo
>>>
c.x
b'foo'
"""
import
sys
if
sys
.
version_info
[
0
]
<
3
:
__doc__
=
__doc__
.
replace
(
u" b'"
,
u" '"
)
class
C
:
x
=
"foo"
tests/run/strfunction.pyx
View file @
cf9b9b59
...
...
@@ -24,7 +24,7 @@ else:
__doc__
=
__doc__
.
replace
(
u" b'"
,
u" '"
)
s
=
str
z
=
str
(
'test'
,
**
encoding
)
z
=
str
(
'test'
)
def
c
(
string
):
return
str
(
string
,
**
encoding
)
...
...
tests/run/unicodefunction.pyx
View file @
cf9b9b59
...
...
@@ -21,7 +21,7 @@ if sys.version_info[0] >= 3:
__doc__
=
__doc__
.
replace
(
u" u'"
,
u" '"
)
u
=
unicode
z
=
unicode
(
'test'
)
z
=
unicode
(
u
'test'
)
def
c
(
string
):
return
unicode
(
string
)
...
...
tests/run/unicodeliterals.pyx
View file @
cf9b9b59
...
...
@@ -2,7 +2,7 @@
__doc__
=
r"""
>>> sa
'abc'
b
'abc'
>>> ua
u'abc'
>>> b
...
...
@@ -39,8 +39,6 @@ __doc__ = r"""
>>> len(null)
1
"""
.
decode
(
u"ASCII"
)
+
u"""
>>> sa == 'abc'
True
>>> ua == u'abc'
True
>>> b == u'123'
...
...
@@ -66,6 +64,8 @@ __doc__ = r"""
import
sys
if
sys
.
version_info
[
0
]
>=
3
:
__doc__
=
__doc__
.
replace
(
u" u'"
,
u" '"
)
else
:
__doc__
=
__doc__
.
replace
(
u" b'"
,
u" '"
)
sa
=
'abc'
ua
=
u'abc'
...
...
tests/run/unicodeliteralsdefault.pyx
View file @
cf9b9b59
...
...
@@ -8,7 +8,7 @@
__doc__
=
r"""
>>> sa
'abc'
b
'abc'
>>> ua
u'abc'
>>> b
...
...
@@ -45,8 +45,6 @@ __doc__ = r"""
>>> len(null)
1
"""
.
decode
(
u"ASCII"
)
+
u"""
>>> sa == 'abc'
True
>>> ua == u'abc'
True
>>> b == u'123'
...
...
@@ -72,6 +70,8 @@ __doc__ = r"""
import
sys
if
sys
.
version_info
[
0
]
>=
3
:
__doc__
=
__doc__
.
replace
(
u" u'"
,
u" '"
)
else
:
__doc__
=
__doc__
.
replace
(
u" b'"
,
u" '"
)
sa
=
'abc'
ua
=
u'abc'
...
...
tests/run/unicodeliteralslatin1.pyx
View file @
cf9b9b59
...
...
@@ -2,7 +2,7 @@
__doc__
=
r"""
>>> sa
'abc'
b
'abc'
>>> ua
u'abc'
>>> b
...
...
@@ -39,8 +39,6 @@ __doc__ = r"""
>>> len(null)
1
"""
.
decode
(
u"ASCII"
)
+
u"""
>>> sa == 'abc'
True
>>> ua == u'abc'
True
>>> b == u'123'
...
...
@@ -66,6 +64,8 @@ __doc__ = r"""
import
sys
if
sys
.
version_info
[
0
]
>=
3
:
__doc__
=
__doc__
.
replace
(
u" u'"
,
u" '"
)
else
:
__doc__
=
__doc__
.
replace
(
u" b'"
,
u" '"
)
sa
=
'abc'
ua
=
u'abc'
...
...
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