diff options
author | Egor Tensin <Egor.Tensin@gmail.com> | 2017-01-22 08:48:28 +0300 |
---|---|---|
committer | Egor Tensin <Egor.Tensin@gmail.com> | 2017-01-22 08:48:28 +0300 |
commit | 2e8d5023a20a1ab35d465f3ad8bed0cb63ac74a6 (patch) | |
tree | 36e2ec4b8b645640e07b817c0e96ec50a71a60bb /test/file | |
parent | add all_test.bat (diff) | |
download | aes-tools-2e8d5023a20a1ab35d465f3ad8bed0cb63ac74a6.tar.gz aes-tools-2e8d5023a20a1ab35d465f3ad8bed0cb63ac74a6.zip |
test: fix Pylint warnings
Diffstat (limited to '')
-rw-r--r-- | test/file.py | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/test/file.py b/test/file.py index d6d691a..2a7707e 100644 --- a/test/file.py +++ b/test/file.py @@ -186,9 +186,10 @@ def run_tests(suite_path, tools_path=(), log_path=None, use_sde=False, force=Fal else: return 1 -def _parse_args(args=sys.argv): +def _parse_args(args=None): + if args is None: + args = sys.argv[1:] parser = argparse.ArgumentParser() - parser.add_argument('--path', '-p', dest='tools_path', metavar='PATH', nargs='*', help='set file encryption utilities directory path') @@ -200,10 +201,9 @@ def _parse_args(args=sys.argv): help='overwrite ciphertext files') parser.add_argument('--suite', '-s', dest='suite_path', default='file/', help='set test suite directory path') + return parser.parse_args(args) - return parser.parse_args(args[1:]) - -def main(args=sys.argv): +def main(args=None): return run_tests(**vars(_parse_args(args))) if __name__ == '__main__': |