Changeset: 1f7b04dfa623 for MonetDB
URL: https://dev.monetdb.org/hg/MonetDB/rev/1f7b04dfa623
Modified Files:
        testing/helpers.py
Branch: default
Log Message:

formatting


diffs (47 lines):

diff --git a/testing/helpers.py b/testing/helpers.py
--- a/testing/helpers.py
+++ b/testing/helpers.py
@@ -4,8 +4,9 @@
 #
 # Copyright 1997 - July 2008 CWI, August 2008 - 2022 MonetDB B.V.
 
-import os, sys
-import re
+import os
+import sys
+
 
 def get_tests_from_all_file(fpath:str):
     res = []
@@ -33,6 +34,7 @@ def get_tests_from_all_file(fpath:str):
                 res.append((cond, test, comment))
     return res
 
+
 def process_test_dir(dir_path:str, ctx={}, **kwargs):
     """
     Adds statistics and tests info to ctx
@@ -168,6 +170,7 @@ def process_test_dir(dir_path:str, ctx={
     ctx['test_count'] += len(tests_out)
     return ctx
 
+
 def process_dir(dir_path: str, ctx={}, **kwargs):
     if os.path.basename(os.path.realpath(dir_path)) == 'Tests':
         return process_test_dir(dir_path, ctx, **kwargs)
@@ -176,6 +179,7 @@ def process_dir(dir_path: str, ctx={}, *
         dir_ = os.path.join(dir_path, d)
         process_dir(dir_, ctx, **kwargs)
 
+
 def build_work_ctx(*args):
     """
     builds testing context
@@ -207,6 +211,7 @@ def build_work_ctx(*args):
         raise ValueError('ERROR: {} is not a valid Tests 
directory'.format(args[0]))
     return ctx
 
+
 if __name__ == '__main__':
     ctx = build_work_ctx(*sys.argv[1:])
     import json
_______________________________________________
checkin-list mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to