From c3fcfb3167e67fd48819e353470ab9b6527befdd Mon Sep 17 00:00:00 2001 From: Stephan Seitz <stephan.seitz@fau.de> Date: Wed, 21 Aug 2019 17:57:09 +0200 Subject: [PATCH] Always skipping pystencils.autodiff in pytest (not only on 'CI') --- conftest.py | 2 ++ pystencils/autodiff.py | 4 +--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/conftest.py b/conftest.py index 85e5e6b85..4da087be5 100644 --- a/conftest.py +++ b/conftest.py @@ -33,6 +33,8 @@ add_path_to_ignore('pystencils_tests/benchmark') add_path_to_ignore('_local_tmp') +collect_ignore += [os.path.join(SCRIPT_FOLDER, "pystencils/autodiff.py")] + try: import pycuda except ImportError: diff --git a/pystencils/autodiff.py b/pystencils/autodiff.py index 5e185835a..96ac836c8 100644 --- a/pystencils/autodiff.py +++ b/pystencils/autodiff.py @@ -8,7 +8,5 @@ Installation: .. code-block:: bash pip install pystencils-autodiff """ -import os -if 'CI' not in os.environ: - raise NotImplementedError('pystencils-autodiff is not installed. Run `pip install pystencils-autodiff`') +raise NotImplementedError('pystencils-autodiff is not installed. Run `pip install pystencils-autodiff`') -- GitLab