Skip to content

Commit 03ba61f

Browse files
committed
Silently skip GC3PIe test w/ Python 3.11
GC3Pie on Python 3.11 does not work: gc3pie/gc3pie#674 So avoid the skip mark for that.
1 parent e190203 commit 03ba61f

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

test/framework/utilities.py

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
from easybuild.framework.easyconfig import easyconfig
4949
from easybuild.framework.easyblock import EasyBlock
5050
from easybuild.main import main
51-
from easybuild.tools import config
51+
from easybuild.tools import config, LooseVersion
5252
from easybuild.tools.config import GENERAL_CLASS, Singleton, module_classes, update_build_option
5353
from easybuild.tools.configobj import ConfigObj
5454
from easybuild.tools.environment import modify_env
@@ -568,7 +568,12 @@ def requires_GC3Pie():
568568
ok = True
569569
except ImportError:
570570
ok = False
571-
return unittest.skipUnless(ok, "GC3Pie not available")
571+
if LooseVersion(sys.version) < '3.11':
572+
return unittest.skipUnless(ok, "GC3Pie not available")
573+
else:
574+
# GC3Pie not available for Python 3.11 so silently skip:
575+
# https://github.com/gc3pie/gc3pie/issues/674
576+
return skip_silentCI_unless(ok, "GC3Pie not available")
572577

573578

574579
def requires_pygraph():

0 commit comments

Comments
 (0)