diff --git a/.travis.yml b/.travis.yml index 7303f66..b568d77 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,7 +2,7 @@ language: python python: - "2.7" - "3.2" - - "3.3" + - "3.11" install: - "pip install lit>=0.3.0" script: diff --git a/OutputCheck/Driver.py b/OutputCheck/Driver.py index 0657989..4b05844 100644 --- a/OutputCheck/Driver.py +++ b/OutputCheck/Driver.py @@ -30,11 +30,9 @@ def enum(*sequential, **named): 'USER_EXIT' ) - - def main(args): parser = argparse.ArgumentParser(description=__doc__) - parser.add_argument('check_file', type=argparse.FileType('rU'), help='File containing check commands') + parser.add_argument('check_file', type=argparse.FileType('r'), help='File containing check commands') parser.add_argument('--file-to-check=', type=argparse.FileType('r'), default='-', help='File to check (default %(default)s)') parser.add_argument('--check-prefix=', default='CHECK', help='Prefix to use from check_file') parser.add_argument("-l","--log-level",type=str, default="INFO", choices=['debug','info','warning','error'])