@@ -1816,14 +1816,16 @@ def remove_module_file(self):
18161816 self .log .info ("Removing existing module file %s" , self .mod_filepath )
18171817 remove_file (self .mod_filepath )
18181818
1819- def report_test_failure (self , msgOrError ):
1820- """Report a failing test either via an exception or warning depending on ignore-test-failure
1819+ def report_test_failure (self , msg_or_error ):
1820+ """
1821+ Report a failing test either via an exception or warning depending on ignore-test-failure
18211822
1822- msgOrError - Failure description. Either a string or an EasyBuildError"""
1823+ :param msg_or_error: failure description (string value or an EasyBuildError instance)
1824+ """
18231825 if self .ignore_test_failure :
1824- print_warning ("Test failure ignored: " + str (msgOrError ), log = self .log )
1826+ print_warning ("Test failure ignored: " + str (msg_or_error ), log = self .log )
18251827 else :
1826- exception = msgOrError if isinstance (msgOrError , EasyBuildError ) else EasyBuildError (msgOrError )
1828+ exception = msg_or_error if isinstance (msg_or_error , EasyBuildError ) else EasyBuildError (msg_or_error )
18271829 raise exception
18281830
18291831 #
@@ -2245,8 +2247,8 @@ def _test_step(self):
22452247 """Run the test_step and handles failures"""
22462248 try :
22472249 self .test_step ()
2248- except EasyBuildError as e :
2249- self .report_test_failure (e )
2250+ except EasyBuildError as err :
2251+ self .report_test_failure (err )
22502252
22512253 def stage_install_step (self ):
22522254 """
@@ -3384,7 +3386,7 @@ def run_step(self, step, step_methods):
33843386 for step_method in step_methods :
33853387 # Remove leading underscore from e.g. "_test_step"
33863388 method_name = extract_method_name (step_method ).lstrip ('_' )
3387- self .log .info ("Running method %s part of step %s" % ( method_name , step ) )
3389+ self .log .info ("Running method %s part of step %s" , method_name , step )
33883390
33893391 if self .dry_run :
33903392 self .dry_run_msg ("[%s method]" , method_name )
0 commit comments