From b0674c2d9b46ba498c12173bc6a403946ea22cad Mon Sep 17 00:00:00 2001 From: Michele Guerini Rocco Date: Tue, 30 Jan 2024 12:34:45 +0100 Subject: [PATCH] tests: handle missing ECCD results --- tests/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tests/__init__.py b/tests/__init__.py index 9d67e99..cfa1353 100644 --- a/tests/__init__.py +++ b/tests/__init__.py @@ -83,6 +83,9 @@ class GrayTest: ref = load_unit(self.reference / 'fort.7') cand = load_unit(self.candidate / 'fort.7') + if ref.size == 0 or cand.size == 0: + raise unittest.SkipTest("ECCD results not available") + # precision as number of decimal places prec = defaultdict(lambda: 3, [ ('dPdVp', -2), ('dPdVmx', -2),