Skip to content

Commit efbd946

Browse files
committed
Fixed flake8 problems
1 parent be6d058 commit efbd946

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

testsuite/pytests/sli2py_mpi/mpi_test_wrapper.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,8 @@ def __init__(self, procs_lst, debug=False, specific_assert=None):
133133
"""
134134
procs_lst : list of number of process to run tests for, e.g., [1, 2, 4]
135135
debug : if True, provide output during execution and do not delete temp directory (Python >=3.12)
136-
specific_assert : function taking ``all_res`` as input and performing test-specific assertions after the overall check performed by the wrapper class
136+
specific_assert : function taking ``all_res`` as input and performing test-specific assertions
137+
after the overall check performed by the wrapper class
137138
"""
138139

139140
try:
@@ -395,5 +396,4 @@ class MPITestAssertCompletes(MPITestWrapper):
395396
"""
396397

397398
def assert_correct_results(self, tmpdirpath):
398-
if self._specific_assert:
399-
self._specific_assert(all_res)
399+
assert self._specific_assert is None, "MPITestAssertCompletes does not support specific_assert."

0 commit comments

Comments
 (0)