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
Kirill Smelkov
cython
Commits
252ec91d
Commit
252ec91d
authored
Apr 28, 2008
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test runner for doctests didn't handle compile errors
parent
331f837b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
9 deletions
+4
-9
runtests.py
runtests.py
+4
-9
No files found.
runtests.py
View file @
252ec91d
...
...
@@ -170,20 +170,15 @@ class CythonCompileTestCase(unittest.TestCase):
self
.
run_distutils
(
module
,
workdir
,
incdir
)
class
CythonRunTestCase
(
CythonCompileTestCase
):
def
runTest
(
self
):
self
.
run
()
def
shortDescription
(
self
):
return
"compiling and running "
+
self
.
module
def
run
(
self
,
result
=
None
):
if
result
is
None
:
result
=
self
.
defaultTestResult
()
CythonCompileTestCase
.
runTest
(
self
)
try
:
try
:
doctest
.
DocTestSuite
(
self
.
module
).
run
(
result
)
except
ImportError
:
result
.
startTest
(
self
)
result
.
addFailure
(
self
,
sys
.
exc_info
())
result
.
stopTest
(
self
)
self
.
runTest
()
doctest
.
DocTestSuite
(
self
.
module
).
run
(
result
)
except
Exception
:
result
.
startTest
(
self
)
result
.
addError
(
self
,
sys
.
exc_info
())
...
...
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