From 0c1d239b5f7600fcb8b87e70eb4a9640beac1a3e Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 23 Aug 2024 11:27:54 +0530 Subject: [PATCH] Exclude bypy/b from go test discovery --- kitty_tests/main.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kitty_tests/main.py b/kitty_tests/main.py index f9c9c12c3..ef63a657c 100644 --- a/kitty_tests/main.py +++ b/kitty_tests/main.py @@ -124,6 +124,8 @@ def find_testable_go_packages() -> tuple[set[str], dict[str, list[str]]]: base = os.getcwd() pat = re.compile(r'^func Test([A-Z]\w+)', re.MULTILINE) for (dirpath, dirnames, filenames) in os.walk(base): + if 'b' in dirnames and os.path.basename(dirpath) == 'bypy': + dirnames.remove('b') for f in filenames: if f.endswith('_test.go'): q = os.path.relpath(dirpath, base)