From e1bf7225dfa820e864e9d814d84373636dd40e8f Mon Sep 17 00:00:00 2001 From: James Krieger Date: Thu, 19 Sep 2024 14:51:51 +0200 Subject: [PATCH] add missing importDec --- prody/tests/dynamics/test_lda.py | 6 ++---- prody/tests/proteins/test_fixer.py | 6 ++---- prody/tests/proteins/test_waterbridges.py | 6 ++---- 3 files changed, 6 insertions(+), 12 deletions(-) diff --git a/prody/tests/dynamics/test_lda.py b/prody/tests/dynamics/test_lda.py index 3c25e2c82..839fba375 100644 --- a/prody/tests/dynamics/test_lda.py +++ b/prody/tests/dynamics/test_lda.py @@ -3,10 +3,8 @@ import numpy as np from numpy import arange from numpy.testing import * -try: - import numpy.testing.decorators as dec -except ModuleNotFoundError: - from numpy.testing import dec +from prody.utilities import importDec +dec = importDec() from prody import * from prody import LOGGER diff --git a/prody/tests/proteins/test_fixer.py b/prody/tests/proteins/test_fixer.py index 1d8002e8d..a01567dc7 100644 --- a/prody/tests/proteins/test_fixer.py +++ b/prody/tests/proteins/test_fixer.py @@ -1,10 +1,8 @@ """This module contains unit tests for :mod:`~prody.proteins`.""" from numpy.testing import * -try: - import numpy.testing.decorators as dec -except ModuleNotFoundError: - from numpy.testing import dec +from prody.utilities import importDec +dec = importDec() from prody import * from prody import LOGGER diff --git a/prody/tests/proteins/test_waterbridges.py b/prody/tests/proteins/test_waterbridges.py index 6b448ff7f..a6b7c1fca 100644 --- a/prody/tests/proteins/test_waterbridges.py +++ b/prody/tests/proteins/test_waterbridges.py @@ -2,10 +2,8 @@ import numpy as np from numpy.testing import * -try: - import numpy.testing.decorators as dec -except ModuleNotFoundError: - from numpy.testing import dec +from prody.utilities import importDec +dec = importDec() from prody import * from prody import LOGGER