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
447791f5
Commit
447791f5
authored
Apr 02, 2011
by
Robert Bradshaw
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup
parent
76f1228e
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
7 deletions
+2
-7
runtests.py
runtests.py
+2
-7
No files found.
runtests.py
View file @
447791f5
...
...
@@ -63,11 +63,9 @@ if sys.platform == 'win32':
except
ValueError
:
pass
distutils_distro
.
parse_config_files
(
cfgfiles
)
TEST_DIRS
=
[
'compile'
,
'errors'
,
'run'
,
'wrappers'
,
'pyregr'
,
'build'
]
TEST_RUN_DIRS
=
[
'run'
,
'wrappers'
,
'pyregr'
]
# Lists external modules, and a matcher matching tests
# which should be excluded if the module is not present.
# TODO: use tags for these
EXT_DEP_MODULES
=
{
'numpy'
:
re
.
compile
(
'.*
\
.
n
umpy_.*'
).
match
,
'pstats'
:
re
.
compile
(
'.*
\
.ps
t
ats_.*'
).
match
,
...
...
@@ -79,8 +77,6 @@ def get_numpy_include_dirs():
return [numpy.get_include()]
# TODO: use tags for these
EXT_DEP_INCLUDES = [
# test name matcher , callable returning list
(re.compile('
numpy_
.
*
').match, get_numpy_include_dirs),
...
...
@@ -209,12 +205,11 @@ class TestBuilder(object):
def
build_suite
(
self
):
suite
=
unittest
.
TestSuite
()
test_dirs
=
TEST_DIRS
filenames
=
os
.
listdir
(
self
.
rootdir
)
filenames
.
sort
()
for
filename
in
filenames
:
path
=
os
.
path
.
join
(
self
.
rootdir
,
filename
)
if
os
.
path
.
isdir
(
path
)
and
filename
in
test_dirs
:
if
os
.
path
.
isdir
(
path
):
if
filename
==
'pyregr'
and
not
self
.
with_pyregr
:
continue
suite
.
addTest
(
...
...
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