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
Gwenaël Samain
cython
Commits
62d62c54
Commit
62d62c54
authored
May 10, 2014
by
Stefan Behnel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
exclude IPython tests if it's not importable
parent
634e1bc8
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
1 deletion
+6
-1
runtests.py
runtests.py
+6
-1
No files found.
runtests.py
View file @
62d62c54
...
@@ -1840,13 +1840,18 @@ def runtests(options, cmd_args, coverage=None):
...
@@ -1840,13 +1840,18 @@ def runtests(options, cmd_args, coverage=None):
if
not
selectors
:
if
not
selectors
:
selectors
=
[
lambda
x
,
tags
=
None
:
True
]
selectors
=
[
lambda
x
,
tags
=
None
:
True
]
# Chec
h
which external modules are not present and exclude tests
# Chec
k
which external modules are not present and exclude tests
# which depends on them (by prefix)
# which depends on them (by prefix)
missing_dep_excluder
=
MissingDependencyExcluder
(
EXT_DEP_MODULES
)
missing_dep_excluder
=
MissingDependencyExcluder
(
EXT_DEP_MODULES
)
version_dep_excluder
=
VersionDependencyExcluder
(
VER_DEP_MODULES
)
version_dep_excluder
=
VersionDependencyExcluder
(
VER_DEP_MODULES
)
exclude_selectors
=
[
missing_dep_excluder
,
version_dep_excluder
]
# want to print msg at exit
exclude_selectors
=
[
missing_dep_excluder
,
version_dep_excluder
]
# want to print msg at exit
try
:
import
IPython
except
ImportError
:
exclude_selectors
.
append
(
re
.
compile
(
'IPython'
,
re
.
I
).
search
)
if
options
.
exclude
:
if
options
.
exclude
:
exclude_selectors
+=
[
string_selector
(
r
)
for
r
in
options
.
exclude
]
exclude_selectors
+=
[
string_selector
(
r
)
for
r
in
options
.
exclude
]
...
...
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