From e541c0534df72c6a604d4a4771de5ca5eb1e2b8c Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Sun, 11 Feb 2024 14:20:09 +0530 Subject: [PATCH] ... --- kitty_tests/parser.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/kitty_tests/parser.py b/kitty_tests/parser.py index a71b573d2..a766bbd45 100644 --- a/kitty_tests/parser.py +++ b/kitty_tests/parser.py @@ -298,11 +298,11 @@ class TestParser(BaseTest): sizes.append(0) def test(buf, a, b, align_offset=0): - a, b = ord(a), ord(b) - expected = test_find_either_of_two_bytes(buf, a, b, 1, 0) + a_, b_ = ord(a), ord(b) + expected = test_find_either_of_two_bytes(buf, a_, b_, 1, 0) for sz in sizes: - actual = test_find_either_of_two_bytes(buf, a, b, sz, align_offset) - self.ae(expected, actual, f'Failed for: {buf!r} at {sz=} and {align_offset=}') + actual = test_find_either_of_two_bytes(buf, a_, b_, sz, align_offset) + self.ae(expected, actual, f'Failed for: {buf!r} {a=} {b=} at {sz=} and {align_offset=}') q = 'abc' for off in range(32):