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
Boxiang Sun
cython
Commits
b5bcc8c4
Commit
b5bcc8c4
authored
Jan 21, 2010
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix too many open files bug in testrunner.
It seems that temp file handles don't work well with fork.
parent
75ab0c6e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
runtests.py
runtests.py
+2
-1
No files found.
runtests.py
View file @
b5bcc8c4
...
...
@@ -404,12 +404,12 @@ class CythonRunTestCase(CythonCompileTestCase):
# fork to make sure we do not keep the tested module loaded
result_handle
,
result_file
=
tempfile
.
mkstemp
()
os
.
close
(
result_handle
)
child_id
=
os
.
fork
()
if
not
child_id
:
result_code
=
0
try
:
try
:
output
=
os
.
fdopen
(
result_handle
,
'wb'
)
tests
=
None
try
:
partial_result
=
PartialTestResult
(
result
)
...
...
@@ -425,6 +425,7 @@ class CythonRunTestCase(CythonCompileTestCase):
**
{
module_name
:
None
})
partial_result
.
addError
(
tests
,
sys
.
exc_info
())
result_code
=
1
output
=
open
(
result_file
,
'wb'
)
pickle
.
dump
(
partial_result
.
data
(),
output
)
except
:
import
traceback
...
...
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