From 8bc28ccc1d5c07fcdf69b24c51a422c15d896135 Mon Sep 17 00:00:00 2001 From: Adrian Garcia Badaracco <1755071+adriangb@users.noreply.github.com> Date: Mon, 2 Aug 2021 10:33:33 -0500 Subject: [PATCH] skip coverage checks on missing imports --- scikeras/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scikeras/__init__.py b/scikeras/__init__.py index 127abeb0..8d9380b2 100644 --- a/scikeras/__init__.py +++ b/scikeras/__init__.py @@ -18,10 +18,10 @@ try: from tensorflow import __version__ as tf_version -except ImportError: +except ImportError: # pragma: no cover raise ImportError("TensorFlow is not installed. " + TF_VERSION_ERR) else: - if version.parse(tf_version) < version.parse(MIN_TF_VERSION): + if version.parse(tf_version) < version.parse(MIN_TF_VERSION): # pragma: no cover raise ImportError(TF_VERSION_ERR) from tensorflow import keras as _keras