Skip to content

Commit 2d65150

Browse files
committed
Address PR comments
1 parent 8484349 commit 2d65150

File tree

3 files changed

+13
-6
lines changed

3 files changed

+13
-6
lines changed

reframe/frontend/executors/policies.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,9 @@ def __init__(self):
168168
self.task_listeners.append(self)
169169

170170
def _remove_from_running(self, task):
171-
getlogger().debug('removing task from running: %s' % task.check.info())
171+
getlogger().debug(
172+
'removing task from running list: %s' % task.check.info()
173+
)
172174
try:
173175
self._running_tasks.remove(task)
174176
except ValueError:
@@ -179,7 +181,9 @@ def _remove_from_running(self, task):
179181
self._running_tasks_counts[partname] -= 1
180182

181183
def _remove_from_waiting(self, task):
182-
getlogger().debug('removing task from waiting: %s' % task.check.info())
184+
getlogger().debug(
185+
'removing task from waiting list: %s' % task.check.info()
186+
)
183187
try:
184188
self._waiting_tasks.remove(task)
185189
except ValueError:

unittests/resources/checks_unlisted/deps_complex.py

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -164,16 +164,19 @@ def prepend_output(self, T1):
164164
with open(os.path.join(T1().stagedir, 'out.txt')) as fp:
165165
self._count += int(fp.read())
166166

167-
# Make this test fail on purpose
168167
@rfm.run_after('setup')
169168
def fail(self):
169+
'''Make this test fail on purpose'''
170+
170171
raise Exception
171172

172173

173-
# This tests fails because of T8. It is added to make sure that
174-
# all tests are accounted for in the summary.
175174
@rfm.simple_test
176175
class T9(BaseTest):
176+
'''This tests fails because of T8. It is added to make sure that
177+
all tests are accounted for in the summary.
178+
'''
179+
177180
def __init__(self):
178181
super().__init__()
179182
self.depends_on('T8')

unittests/test_policies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,9 +225,9 @@ def test_dependencies(self):
225225
self.checks = self.loader.load_all()
226226
self.runall(self.checks, sort=True)
227227

228+
self.assertRunall()
228229
stats = self.runner.stats
229230
assert stats.num_cases(0) == 10
230-
self.assertRunall()
231231
assert len(stats.failures()) == 4
232232
for tf in stats.failures():
233233
check = tf.testcase.check

0 commit comments

Comments
 (0)