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
c646da0b
Commit
c646da0b
authored
Apr 24, 2014
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use try-else for filed C compile.
parent
5e0facb6
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
runtests.py
runtests.py
+4
-5
No files found.
runtests.py
View file @
c646da0b
...
@@ -869,12 +869,11 @@ class CythonCompileTestCase(unittest.TestCase):
...
@@ -869,12 +869,11 @@ class CythonCompileTestCase(unittest.TestCase):
if not self.cython_only:
if not self.cython_only:
try:
try:
so_path = self.run_distutils(test_directory, module, workdir, incdir)
so_path = self.run_distutils(test_directory, module, workdir, incdir)
compiled = True
except Exception:
except Exception:
compiled = False
if expected_errors != '_FAIL_C_COMPILE':
if expected_errors != '_FAIL_C_COMPILE':
raise
raise
if compiled and expected_errors == '_FAIL_C_COMPILE':
else:
if expected_errors == '_FAIL_C_COMPILE':
# must raise this outside the try block
# must raise this outside the try block
raise RuntimeError('should have failed C compile')
raise RuntimeError('should have failed C compile')
return so_path
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