Skip to content

Commit

Permalink
Silently skip GC3PIe test w/ Python 3.11
Browse files Browse the repository at this point in the history
GC3Pie on Python 3.11 does not work: gc3pie/gc3pie#674
So avoid the skip mark for that.
  • Loading branch information
Flamefire committed May 12, 2023
1 parent f1c8e5a commit bfbffa0
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions test/framework/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@
from easybuild.framework.easyconfig import easyconfig
from easybuild.framework.easyblock import EasyBlock
from easybuild.main import main
from easybuild.tools import config
from easybuild.tools import config, LooseVersion
from easybuild.tools.config import GENERAL_CLASS, Singleton, module_classes, update_build_option
from easybuild.tools.configobj import ConfigObj
from easybuild.tools.environment import modify_env
Expand Down Expand Up @@ -570,7 +570,12 @@ def requires_GC3Pie():
ok = True
except ImportError:
ok = False
return unittest.skipUnless(ok, "GC3Pie not available")
if LooseVersion(sys.version) < '3.11':
return unittest.skipUnless(ok, "GC3Pie not available")
else:
# GC3Pie not available for Python 3.11 so silently skip:
# https://github.com/gc3pie/gc3pie/issues/674
return skip_silentCI_unless(ok, "GC3Pie not available")


def requires_pygraph():
Expand Down

0 comments on commit bfbffa0

Please sign in to comment.