Commit 1165671b authored by Stefan Behnel's avatar Stefan Behnel

exclude old IPython versions from IPythonMagic tests

parent 3461eb95
...@@ -1842,8 +1842,10 @@ def runtests(options, cmd_args, coverage=None): ...@@ -1842,8 +1842,10 @@ def runtests(options, cmd_args, coverage=None):
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: try:
import IPython import IPython.core.release
except ImportError: if list(IPython.core.release._ver) < [1, 0, 0]:
raise ImportError
except (ImportError, AttributeError, TypeError):
exclude_selectors.append(RegExSelector('IPython')) exclude_selectors.append(RegExSelector('IPython'))
if options.exclude: if options.exclude:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment