From 7cc4940e2d6be2feaf74e3f0a7fc137b7fe7d5ef 2018-08-27 22:21:16 From: Matthias Bussonnier Date: 2018-08-27 22:21:16 Subject: [PATCH] remove trio from test requirement and skipp if not there --- diff --git a/IPython/core/tests/test_async_helpers.py b/IPython/core/tests/test_async_helpers.py index 748f3f1..c219a0f 100644 --- a/IPython/core/tests/test_async_helpers.py +++ b/IPython/core/tests/test_async_helpers.py @@ -9,6 +9,7 @@ from itertools import chain, repeat import nose.tools as nt from textwrap import dedent, indent from unittest import TestCase +from IPython.testing.decorators import skip_without ip = get_ipython() iprc = lambda x: ip.run_cell(dedent(x)).raise_error() @@ -242,9 +243,11 @@ if sys.version_info > (3, 5): """ ) + @skip_without('curio') def test_autoawait_curio(self): iprc("%autoawait curio") + @skip_without('trio') def test_autoawait_trio(self): iprc("%autoawait trio") diff --git a/setup.py b/setup.py index af48899..78529cf 100755 --- a/setup.py +++ b/setup.py @@ -175,7 +175,7 @@ extras_require = dict( parallel = ['ipyparallel'], qtconsole = ['qtconsole'], doc = ['Sphinx>=1.3'], - test = ['nose>=0.10.1', 'requests', 'testpath', 'pygments', 'nbformat', 'ipykernel', 'numpy', 'trio'], + test = ['nose>=0.10.1', 'requests', 'testpath', 'pygments', 'nbformat', 'ipykernel', 'numpy'], terminal = [], kernel = ['ipykernel'], nbformat = ['nbformat'],