From c5d8cf8eb6a6e84347b9379945f308f29a2fe5cb Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 30 Nov 2018 03:27:41 -0500 Subject: Use pylint. --- tools/unit_tests.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'tools/unit_tests.py') diff --git a/tools/unit_tests.py b/tools/unit_tests.py index 47dfcf886..8b36fec44 100755 --- a/tools/unit_tests.py +++ b/tools/unit_tests.py @@ -29,7 +29,9 @@ def run_unit_test2(cmd): sys.exit(errcode) -def run_unit_test(deno_exe, permStr, flags=[]): +def run_unit_test(deno_exe, permStr, flags=None): + if flags is None: + flags = [] cmd = [deno_exe, "--reload", "js/unit_tests.ts", permStr] + flags run_unit_test2(cmd) -- cgit v1.2.3