From 9c4ea1dc682f1a7ccf0c87887e7110fa3427b9fb Mon Sep 17 00:00:00 2001 From: Marenz Date: Thu, 2 Jun 2022 16:45:25 +0200 Subject: [PATCH] lsp.py: Add missing check for non-interactive --- test/lsp.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test/lsp.py b/test/lsp.py index 117b65df2..f20e93953 100755 --- a/test/lsp.py +++ b/test/lsp.py @@ -643,7 +643,7 @@ class FileTestRunner: finally: self.close_all_open_files() - def user_interaction_failed_method_test(self, testcase, actual, expected): + def user_interaction_failed_method_test(self, testcase, actual, expected) -> TestResult: actual_pretty = self.suite.replace_ranges_with_tags(actual, self.sub_dir) if expected is None: @@ -654,6 +654,9 @@ class FileTestRunner: "\nbut got:\n" + actual_pretty ) + if self.suite.non_interactive: + return self.TestResult.SuccessOrIgnored + while True: print("(u)pdate/(r)etry/(i)gnore?") user_response = getCharFromStdin()