Skip to content

Commit

Permalink
Class is inherited so restrict application of new test step
Browse files Browse the repository at this point in the history
  • Loading branch information
ocaisa committed Jun 7, 2024
1 parent 9af5750 commit ac1ce4e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion easybuild/easyblocks/p/python.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,8 @@ def build_step(self, *args, **kwargs):
def test_step(self):
"""Test Python build via 'make test'."""
# Turn on testing by default for recent Python versions
if LooseVersion(self.version) >= LooseVersion('3.10') and self.cfg['runtest'] is None:
relevant_python = (self.name.lower() == 'python' and LooseVersion(self.version) >= LooseVersion('3.10'))
if relevant_python and self.cfg['runtest'] is None:
self.cfg['runtest'] = 'test'
# Need to skip some troublesome tests
# (socket tests give a permission denied error, may be due to SELinux)
Expand Down

0 comments on commit ac1ce4e

Please sign in to comment.