Merge pull request #13093 from ethereum/lsp.py-fixes

lsp.py: Add missing check for non-interactive
This commit is contained in:
Christian Parpart 2022-06-07 16:13:22 +02:00 committed by GitHub
commit 87f5865fb0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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()