From 93f603776c37437411d6fccf4c4dc0fb0ea73d5d Mon Sep 17 00:00:00 2001 From: Robin Matz Date: Wed, 8 Nov 2023 07:23:38 +0100 Subject: [PATCH] Fix failing acceptance test --- Mainframe3270/keywords/read_write.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Mainframe3270/keywords/read_write.py b/Mainframe3270/keywords/read_write.py index e6bdc71..70235bc 100644 --- a/Mainframe3270/keywords/read_write.py +++ b/Mainframe3270/keywords/read_write.py @@ -113,7 +113,7 @@ def get_string_positions_only_before( self.mf.check_limits(ypos, xpos) results = self.mf.get_string_positions(string, ignore_case) filtered = [result for result in results if result < (ypos, xpos)] - ReadWriteKeywords._prepare_result_positions(mode, filtered) + return ReadWriteKeywords._prepare_result_positions(mode, filtered) @keyword("Write") def write(self, txt: str) -> None: