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
d0b9ed0e
Commit
d0b9ed0e
authored
Feb 23, 2013
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
simplify evaluation of --cython-only option in test runner
parent
687d8404
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
7 deletions
+4
-7
runtests.py
runtests.py
+4
-7
No files found.
runtests.py
View file @
d0b9ed0e
...
...
@@ -746,7 +746,8 @@ class CythonRunTestCase(CythonCompileTestCase):
self.success = False
self.runCompileTest()
failures, errors = len(result.failures), len(result.errors)
self.run_tests(result)
if not self.cython_only:
self.run_tests(result)
if failures == len(result.failures) and errors == len(result.errors):
# No new errors...
self.success = True
...
...
@@ -761,8 +762,7 @@ class CythonRunTestCase(CythonCompileTestCase):
pass
def run_tests(self, result):
if not self.cython_only:
self.run_doctests(self.module, result)
self.run_doctests(self.module, result)
def run_doctests(self, module_name, result):
def run_test(result):
...
...
@@ -926,8 +926,7 @@ class CythonUnitTestCase(CythonRunTestCase):
return "
compiling
(
%
s
)
tests
in
%
s
" % (self.language, self.module)
def run_tests(self, result):
if not self.cython_only:
unittest.defaultTestLoader.loadTestsFromName(self.module).run(result)
unittest.defaultTestLoader.loadTestsFromName(self.module).run(result)
class CythonPyregrTestCase(CythonRunTestCase):
...
...
@@ -960,8 +959,6 @@ class CythonPyregrTestCase(CythonRunTestCase):
self.run_doctests(module, result)
def run_tests(self, result):
if self.cython_only:
return
try:
from test import support
except ImportError: # Python2.x
...
...
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