diff --git a/xtest/test_regrtest.py b/xtest/test_regrtest.py index c32623e1..39653694 100644 --- a/xtest/test_regrtest.py +++ b/xtest/test_regrtest.py @@ -128,4 +128,4 @@ def test_regrtest(test_case): if __name__ == '__main__': - exit(manifest.verify()) + sys.exit(manifest.verify()) diff --git a/xtest/test_unparse_env.py b/xtest/test_unparse_env.py index 14861f34..0348195c 100644 --- a/xtest/test_unparse_env.py +++ b/xtest/test_unparse_env.py @@ -14,7 +14,7 @@ def gather_files(): print('Interpreter version: ', sys.version_info) print('sys.path: ', sys.path) for sys_path in sys.path: - for subdir, dirs, files in os.walk(sys_path): + for subdir, _dirs, files in os.walk(sys_path): for file in filter(lambda f: f.endswith('.py'), [os.path.join(subdir, file) for file in files]): yield file