Skip to content

Commit

Permalink
skip coverage checks on missing imports
Browse files Browse the repository at this point in the history
  • Loading branch information
adriangb committed Aug 2, 2021
1 parent b384ab4 commit 8bc28cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scikeras/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8bc28cc

Please sign in to comment.