From 990f81b22908d28e44ed058a5d7619a0b41e945e Mon Sep 17 00:00:00 2001 From: Adam Williamson Date: Tue, 28 May 2024 09:13:30 -0700 Subject: [PATCH] check-needles: ignore commented lines Signed-off-by: Adam Williamson --- check-needles.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/check-needles.py b/check-needles.py index c7f2d6f8..6873140e 100755 --- a/check-needles.py +++ b/check-needles.py @@ -61,6 +61,9 @@ for testpath in testpaths: with open(testpath, "r") as testfh: testlines = testfh.readlines() for line in testlines: + # ignore comments + if line.strip().startswith("#"): + continue matchfuncs = ( "assert_screen", "assert_and_click",