Commit bbc19c15 authored by Stefan Behnel's avatar Stefan Behnel

Hard switch off IPython test if import fails. Could not find a better way to...

Hard switch off IPython test if import fails. Could not find a better way to keep it from failing on appveyor.
parent a461b52a
...@@ -20,9 +20,14 @@ except ImportError: ...@@ -20,9 +20,14 @@ except ImportError:
def str_to_unicode(self, s): def str_to_unicode(self, s):
return s return s
__test__ = {}
py3compat = _py3compat() py3compat = _py3compat()
def skip_if_not_installed(_):
return None
else:
def skip_if_not_installed(c):
return c
try: try:
# disable IPython history thread before it gets started to avoid having to clean it up # disable IPython history thread before it gets started to avoid having to clean it up
from IPython.core.history import HistoryManager from IPython.core.history import HistoryManager
...@@ -69,6 +74,7 @@ else: ...@@ -69,6 +74,7 @@ else:
return _skip_win32 return _skip_win32
@skip_if_not_installed
class TestIPythonMagic(CythonTest): class TestIPythonMagic(CythonTest):
@classmethod @classmethod
......
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