Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
ekouts committed Nov 29, 2023
1 parent 8fcb7d8 commit 5641948
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions reframe/core/modules.py
Original file line number Diff line number Diff line change
Expand Up @@ -586,9 +586,9 @@ class TModImpl(ModulesSystemImpl):
MIN_VERSION = (3, 2)

def __init__(self, module_resolution=True):
self._version = None
if not module_resolution:
# The module system may not be available locally
self._version = None
return

Check warning on line 592 in reframe/core/modules.py

View check run for this annotation

Codecov / codecov/patch

reframe/core/modules.py#L592

Added line #L592 was not covered by tests

# Try to figure out if we are indeed using the TCL version
Expand Down Expand Up @@ -725,7 +725,6 @@ class TMod31Impl(TModImpl):
def __init__(self, module_resolution=True):
self._version = None
self._command = None

if not module_resolution:

Check warning on line 728 in reframe/core/modules.py

View check run for this annotation

Codecov / codecov/patch

reframe/core/modules.py#L726-L728

Added lines #L726 - L728 were not covered by tests
# The module system may not be available locally
return

Check warning on line 730 in reframe/core/modules.py

View check run for this annotation

Codecov / codecov/patch

reframe/core/modules.py#L730

Added line #L730 was not covered by tests
Expand Down Expand Up @@ -1119,7 +1118,6 @@ class SpackImpl(ModulesSystemImpl):
def __init__(self, module_resolution=True):
self._name_format = '{name}/{version}-{hash}'
self._version = None

if not module_resolution:
# The module system may not be available locally
return

Check warning on line 1123 in reframe/core/modules.py

View check run for this annotation

Codecov / codecov/patch

reframe/core/modules.py#L1123

Added line #L1123 was not covered by tests
Expand Down

0 comments on commit 5641948

Please sign in to comment.