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
b3080677
Commit
b3080677
authored
Feb 28, 2009
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Py3 test fixes
parent
bf630e08
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
9 deletions
+9
-9
tests/run/importfrom.pyx
tests/run/importfrom.pyx
+5
-5
tests/run/trybreak.pyx
tests/run/trybreak.pyx
+4
-4
No files found.
tests/run/importfrom.pyx
View file @
b3080677
...
...
@@ -48,21 +48,21 @@ def import4():
def
typed_imports
():
import
sys
cdef
long
max
int
cdef
long
max
unicode
cdef
tuple
t
from
sys
import
max
int
print
max
int
==
sys
.
maxint
from
sys
import
max
unicode
print
max
unicode
==
sys
.
maxunicode
from
sys
import
version_info
as
t
print
t
is
sys
.
version_info
try
:
from
sys
import
version_info
as
max
int
from
sys
import
version_info
as
max
unicode
except
TypeError
,
e
:
print
e
try
:
from
sys
import
max
int
as
t
from
sys
import
max
unicode
as
t
except
TypeError
,
e
:
print
e
tests/run/trybreak.pyx
View file @
b3080677
__doc__
=
u"""
>>>
foo(
)
'a'
>>>
print(foo()
)
a
"""
# Indirectly makes sure the cleanup happens correctly on breaking.
def
foo
():
for
x
in
"abc"
:
for
x
in
u
"abc"
:
try
:
x
()
except
:
break
for
x
in
"abc"
:
for
x
in
u
"abc"
:
try
:
x
()
except
:
...
...
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