@@ -22,7 +22,8 @@ def all_fortran_paths(root_path: pathlib.Path):
2222 if not root_path .exists ():
2323 return []
2424 all_input_paths = []
25- for extension in itertools .chain (* [(_ , _ .upper ()) for _ in ('.f' , '.f90' , '.f03' , '.f08' , '.h' )]):
25+ for extension in itertools .chain (
26+ * [(_ , _ .upper ()) for _ in ('.f' , '.f90' , '.f03' , '.f08' , '.h' )]):
2627 input_paths = root_path .glob (
2728 f'**/*{ extension } ' )
2829 for input_path in input_paths :
@@ -41,6 +42,7 @@ class Tests(unittest.TestCase):
4142 maxDiff = None
4243
4344 def check_cases (self , input_paths , relative = True ):
45+ """Try to parse all given files, fail on first failure."""
4446 for input_path in input_paths :
4547 if relative :
4648 input_path = _OFP_TESTS_DIR .joinpath (input_path ).resolve ()
@@ -65,6 +67,7 @@ def check_cases_and_report(
6567 success_reports_path : pathlib .Path , input_paths_root : pathlib .Path ,
6668 input_paths : t .Sequence [pathlib .Path ], minimum_passed_cases : int = None ,
6769 fall_back_to_ofc : bool = False ):
70+ """Try to parse all given files, fail if there are not enough successes."""
6871 all_count = len (input_paths )
6972 if minimum_passed_cases is None :
7073 minimum_passed_cases = all_count
@@ -250,7 +253,7 @@ def test_ofp_do(self):
250253 'rule-tests/R843.f03' ]]
251254 self .check_cases (input_paths )
252255
253- def test_ofp_do_concurrent_and_forall (self ):
256+ def test_ofp_do_concurr_and_forall (self ):
254257 input_paths = [pathlib .Path (_ ) for _ in [
255258 'annex_c/c_4_5.f03' ,
256259 'annex_c/c_4_6.f03' ,
0 commit comments