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
f5487ab2
Commit
f5487ab2
authored
Dec 11, 2010
by
Vitja Makarov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Handle SkipTest and ReourceDenined case
parent
1bcf08a8
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
6 deletions
+7
-6
runtests.py
runtests.py
+7
-6
No files found.
runtests.py
View file @
f5487ab2
...
...
@@ -655,7 +655,7 @@ class CythonPyregrTestCase(CythonRunTestCase):
def
_run_doctest
(
self
,
result
,
module
):
self
.
run_doctests
(
module
,
result
)
def
patch_support
(
self
,
result
):
def
run_tests
(
self
,
result
):
try
:
from
test
import
test_support
as
support
except
ImportError
:
# Py3k
...
...
@@ -669,11 +669,12 @@ class CythonPyregrTestCase(CythonRunTestCase):
support
.
run_unittest
=
run_unittest
support
.
run_doctest
=
run_doctest
def
run_tests
(
self
,
result
):
self
.
patch_support
(
result
)
try
:
module
=
__import__
(
self
.
module
)
if
hasattr
(
module
,
'test_main'
):
module
.
test_main
()
except
(
unittest
.
SkipTest
,
support
.
ResourceDenied
),
e
:
result
.
addSkip
(
self
,
str
(
e
))
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