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
cfbd88a2
Commit
cfbd88a2
authored
May 03, 2014
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
try fixing test runner output when sys.stderr is replaced
parent
e8c85867
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
runtests.py
runtests.py
+3
-3
No files found.
runtests.py
View file @
cfbd88a2
...
...
@@ -836,7 +836,7 @@ class CythonCompileTestCase(unittest.TestCase):
finally:
sys.stderr = old_stderr
tostderr = sys.
stderr
.write
tostderr = sys.
__stderr__
.write
if 'cerror' in self.tags['tag']:
if errors:
tostderr("
\
n
===
Expected
C
compile
error
===
\
n
")
...
...
@@ -885,11 +885,11 @@ class CythonCompileTestCase(unittest.TestCase):
stdout = get_stdout and get_stdout().strip()
if stdout:
tostderr("
\
n
===
C
/
C
++
compiler
output
:
===
\
n
")
print_bytes(stdout, end=None, file=sys.
stderr
)
print_bytes(stdout, end=None, file=sys.
__stderr__
)
stderr = get_stderr and get_stderr().strip()
if stderr:
tostderr("
\
n
===
C
/
C
++
compiler
error
output
:
===
\
n
")
print_bytes(stderr, end=None, file=sys.
stderr
)
print_bytes(stderr, end=None, file=sys.
__stderr__
)
if stdout or stderr:
tostderr("
\
n
==============================
\
n
")
return so_path
...
...
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