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
c872b999
Commit
c872b999
authored
Aug 24, 2017
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix a CPython comparison test in CPython 3.3 which was apparently fixed only in 3.4 and later.
parent
6ef7d223
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
8 deletions
+5
-8
tests/run/generator_frame_cycle.py
tests/run/generator_frame_cycle.py
+5
-8
No files found.
tests/run/generator_frame_cycle.py
View file @
c872b999
...
...
@@ -25,9 +25,6 @@ def test_generator_frame_cycle():
eval
(
'g.throw(ValueError)'
,
{
'g'
:
g
})
del
g
if
cython
.
compiled
:
# FIXME: this should not be necessary, but I can't see how to do it...
import
gc
;
gc
.
collect
()
return
tuple
(
testit
)
...
...
@@ -53,11 +50,11 @@ def test_generator_frame_cycle_with_outer_exc():
assert
sys
.
exc_info
()[
1
]
is
exc
,
sys
.
exc_info
()
# Frame object cycle
eval
(
'g.throw(ValueError)'
,
{
'g'
:
g
})
assert
sys
.
exc_info
()[
1
]
is
exc
,
sys
.
exc_info
()
# CPython 3.3 handles this incorrectly itself :)
if
cython
.
compiled
or
sys
.
version_info
[:
2
]
not
in
[(
3
,
2
),
(
3
,
3
)]:
assert
sys
.
exc_info
()[
1
]
is
exc
,
sys
.
exc_info
()
del
g
assert
sys
.
exc_info
()[
1
]
is
exc
,
sys
.
exc_info
()
if
cython
.
compiled
or
sys
.
version_info
[:
2
]
not
in
[(
3
,
2
),
(
3
,
3
)]:
assert
sys
.
exc_info
()[
1
]
is
exc
,
sys
.
exc_info
()
if
cython
.
compiled
:
# FIXME: this should not be necessary, but I can't see how to do it...
import
gc
;
gc
.
collect
()
return
tuple
(
testit
)
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