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
e22daba4
Commit
e22daba4
authored
9 years ago
by
Lisandro Dalcin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
AppVeyor: Fix to test runner to handle compile/link errors
parent
128c4619
No related merge requests found
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
2 deletions
+4
-2
runtests.py
runtests.py
+4
-2
No files found.
runtests.py
View file @
e22daba4
...
...
@@ -938,15 +938,17 @@ class CythonCompileTestCase(unittest.TestCase):
so_path = None
if not self.cython_only:
from Cython.Utils import captured_fd, print_bytes
from distutils.errors import CompileError, LinkError
show_output = True
get_stderr = get_stdout = None
try:
with captured_fd(1) as get_stdout:
with captured_fd(2) as get_stderr:
so_path = self.run_distutils(test_directory, module, workdir, incdir)
except Exception:
except Exception
as exc
:
if ('cerror' in self.tags['tag'] and
((get_stderr and get_stderr()) or sys.platform == 'win32')):
((get_stderr and get_stderr()) or
isinstance(exc, (CompileError, LinkError))):
show_output = False # expected C compiler failure
else:
raise
...
...
This diff is collapsed.
Click to expand it.
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