Skip to content

Commit 28aa6c3

Browse files
committed
Coding style fixes + remove dead code
1 parent c3e6a54 commit 28aa6c3

File tree

3 files changed

+3
-13
lines changed

3 files changed

+3
-13
lines changed

reframe/core/pipeline.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2299,7 +2299,7 @@ def check_performance(self):
22992299
sn.assert_reference(
23002300
val, ref, low_thres, high_thres,
23012301
msg=('failed to meet reference: %s={0}, '
2302-
'expected {1} (l={2}, u={3})' % tag))
2302+
'expected {1} (l={2}, u={3})' % tag))
23032303
)
23042304
except SanityError as e:
23052305
raise PerformanceError(e) from None

reframe/frontend/executors/__init__.py

-11
Original file line numberDiff line numberDiff line change
@@ -141,17 +141,6 @@ def clone_testcases(cases):
141141
return dependencies.toposort(dependencies.build_deps(new_cases)[0])
142142

143143

144-
class _temp_dry_run:
145-
def __init__(self, check):
146-
self._check = check
147-
self._dry_run_save = check._rfm_dry_run
148-
149-
def __enter__(self):
150-
self._check._rfm_dry_run = True
151-
152-
def __exit__(self, exc_type, exc_val, exc_tb):
153-
self._check._rfm_dry_run = self._dry_run_save
154-
155144
class RegressionTask:
156145
'''A class representing a :class:`RegressionTest` through the regression
157146
pipeline.'''

unittests/test_cli.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,8 @@ def test_perflogdir_from_env(run_reframe, tmp_path, monkeypatch):
423423
def test_performance_report(run_reframe, run_action):
424424
returncode, stdout, _ = run_reframe(
425425
checkpath=['unittests/resources/checks/frontend_checks.py'],
426-
more_options=['-n', '^PerformanceFailureCheck', '--performance-report'],
426+
more_options=['-n', '^PerformanceFailureCheck',
427+
'--performance-report'],
427428
action=run_action
428429
)
429430
if run_action == 'run':

0 commit comments

Comments
 (0)