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
dba22361
Commit
dba22361
authored
Apr 16, 2013
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix pyregr test runner
parent
15d09f50
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
4 deletions
+12
-4
runtests.py
runtests.py
+12
-4
No files found.
runtests.py
View file @
dba22361
...
...
@@ -59,6 +59,11 @@ except ImportError:
def
__repr__
(
self
):
return
repr
(
self
.
_dict
)
try
:
basestring
except
NameError
:
basestring
=
str
WITH_CYTHON
=
True
CY3_DIR
=
None
...
...
@@ -807,11 +812,14 @@ class CythonRunTestCase(CythonCompileTestCase):
pass
def run_tests(self, result, ext_so_path):
self.run_doctests(result, ext_so_path)
self.run_doctests(
self.module,
result, ext_so_path)
def run_doctests(self, result, ext_so_path):
def run_doctests(self,
module_or_name,
result, ext_so_path):
def run_test(result):
module = import_ext(self.module, ext_so_path)
if isinstance(module_or_name, basestring):
module = import_ext(module_or_name, ext_so_path)
else:
module = module_or_name
tests = doctest.DocTestSuite(module)
tests.run(result)
run_forked_test(result, run_test, self.shortDescription(), self.fork)
...
...
@@ -1003,7 +1011,7 @@ class CythonPyregrTestCase(CythonRunTestCase):
suite.run(result)
def _run_doctest(self, result, module):
self.run_doctests(module, result)
self.run_doctests(module, result
, None
)
def run_tests(self, result, ext_so_path):
try:
...
...
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