From c4e985863fec03d063097e2161e4162a5a84ba78 Mon Sep 17 00:00:00 2001 From: Christos Barkonikos Date: Fri, 14 May 2021 23:37:07 +0300 Subject: [PATCH] Fix runtests.py when running without arguments --- runtests.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/runtests.py b/runtests.py index c340b55d8..0e8b83a52 100755 --- a/runtests.py +++ b/runtests.py @@ -20,6 +20,8 @@ def is_class(string): if __name__ == "__main__": + pytest_args = None + if len(sys.argv) > 1: pytest_args = sys.argv[1:] first_arg = pytest_args[0]