Skip to content

Commit 0369e4e

Browse files
author
Vasileios Karakasis
committed
Style fixes
1 parent ac74d23 commit 0369e4e

File tree

3 files changed

+3
-8
lines changed

3 files changed

+3
-8
lines changed

reframe/core/modules.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ def execute(self, cmd, *args):
215215
'''
216216
return self._backend.execute(cmd, *args)
217217

218-
219218
def load_module(self, name, force=False, collection=False):
220219
'''Load the module ``name``.
221220
@@ -402,16 +401,14 @@ def execute(self, cmd, *args):
402401
try:
403402
exec_output = self._execute(cmd, *args)
404403
except SpawnedProcessError as e:
405-
raise EnvironError from e
404+
raise EnvironError('could not execute module operation') from e
406405

407406
return exec_output
408407

409-
410408
@abc.abstractmethod
411409
def _execute(self, cmd, *args):
412410
'''Execute an arbitrary command of the module system.'''
413411

414-
415412
@abc.abstractmethod
416413
def available_modules(self, substr):
417414
'''Return a list of available modules, whose name contains ``substr``.

unittests/test_environments.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
import reframe.core.environments as env
1111
import reframe.core.runtime as rt
1212
import unittests.fixtures as fixtures
13-
from reframe.core.exceptions import (EnvironError, SpawnedProcessError)
13+
from reframe.core.exceptions import EnvironError
1414

1515

1616
@pytest.fixture

unittests/test_modules.py

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,7 @@
1212
import reframe.utility as util
1313
import reframe.utility.osext as osext
1414
import unittests.fixtures as fixtures
15-
from reframe.core.exceptions import (ConfigError,
16-
EnvironError,
17-
SpawnedProcessError)
15+
from reframe.core.exceptions import (ConfigError, EnvironError)
1816
from reframe.core.runtime import runtime
1917

2018

0 commit comments

Comments
 (0)