From 9ae9db7f70d0385b1fb8159c29a586e3934aec95 Mon Sep 17 00:00:00 2001 From: Johannes Altmanninger Date: Sat, 11 Oct 2025 16:29:11 +0200 Subject: [PATCH] test_driver: fix code clone --- tests/test_driver.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/tests/test_driver.py b/tests/test_driver.py index 303718c19..fe0aacf6a 100755 --- a/tests/test_driver.py +++ b/tests/test_driver.py @@ -161,10 +161,7 @@ async def main(): files = [ (os.path.abspath(path), str(path.relative_to(script_path))) for path in sorted(script_path.glob("checks/*.fish")) - ] - files += [ - (os.path.abspath(path), str(path.relative_to(script_path))) - for path in sorted(script_path.glob("pexpects/*.py")) + + sorted(script_path.glob("pexpects/*.py")) ] if not PEXPECT and any(x.endswith(".py") for (x, _) in files): @@ -292,7 +289,7 @@ async def run_test( script_path: Path, def_subs, lconfig, - fishdir, + fishdir: Path, ) -> TestResult: if not test_file_path.endswith(".fish") and not test_file_path.endswith(".py"): return TestFail(arg, None, f"Not a valid test file: {arg}")