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
f0859e96
Commit
f0859e96
authored
Oct 16, 2011
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
support for using pyximport in the test runner to include stdlib builds in the test runs
parent
f8284d55
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
0 deletions
+6
-0
runtests.py
runtests.py
+6
-0
No files found.
runtests.py
View file @
f0859e96
...
@@ -1369,6 +1369,8 @@ def main():
...
@@ -1369,6 +1369,8 @@ def main():
help="working directory")
help="working directory")
parser.add_option("--debug", dest="for_debugging", default=False, action="store_true",
parser.add_option("--debug", dest="for_debugging", default=False, action="store_true",
help="configure for easier use with a debugger (e.g. gdb)")
help="configure for easier use with a debugger (e.g. gdb)")
parser.add_option("--pyximport-py", dest="pyximport_py", default=False, action="store_true",
help="use pyximport to automatically compile imported .pyx and .py files")
options, cmd_args = parser.parse_args()
options, cmd_args = parser.parse_args()
...
@@ -1549,6 +1551,10 @@ def main():
...
@@ -1549,6 +1551,10 @@ def main():
else
:
else
:
test_runner
=
unittest
.
TextTestRunner
(
verbosity
=
options
.
verbosity
)
test_runner
=
unittest
.
TextTestRunner
(
verbosity
=
options
.
verbosity
)
if
options
.
pyximport_py
:
import
pyximport
pyximport
.
install
(
pyimport
=
True
,
build_dir
=
os
.
path
.
join
(
WORKDIR
,
'_pyximport'
))
result
=
test_runner
.
run
(
test_suite
)
result
=
test_runner
.
run
(
test_suite
)
if
options
.
coverage
or
options
.
coverage_xml
or
options
.
coverage_html
:
if
options
.
coverage
or
options
.
coverage_xml
or
options
.
coverage_html
:
...
...
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