From bfce7cfa3f3427d45ef8a3f14a7402c2a39279e5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micha=C5=82=20G=C3=B3rny?= Date: Thu, 7 Apr 2022 16:03:28 +0200 Subject: [PATCH] Skip test_ipython if IPython is not available Packaging IPython for more "exotic" architectures poses a serious problem to Gentoo developers. Make it possible to easily run the test suite without it installed by skipping the few tests requiring it. --- tests/test_ipython.py | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tests/test_ipython.py b/tests/test_ipython.py index 8983bf13..aa12adfe 100644 --- a/tests/test_ipython.py +++ b/tests/test_ipython.py @@ -2,6 +2,11 @@ import mock +import pytest + + +pytest.importorskip("IPython") + @mock.patch.dict(os.environ, {}, clear=True) def test_ipython_existing_variable_no_override(tmp_path):