From 191824ce300bc8c81503c823b1b14bb6b9182486 Mon Sep 17 00:00:00 2001 From: Jakub Roztocil Date: Sat, 26 Oct 2024 19:17:48 +0200 Subject: [PATCH] Fix occasional failures for tests dealing with binary bodies --- tests/utils/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/utils/__init__.py b/tests/utils/__init__.py index 8cfbd941e8..a1c30a4de0 100644 --- a/tests/utils/__init__.py +++ b/tests/utils/__init__.py @@ -82,8 +82,8 @@ class Encoder: TEMPLATE = 'hash({})' - STR_PATTERN = re.compile(r'hash\((.*)\)') - BYTES_PATTERN = re.compile(rb'hash\((.*)\)') + STR_PATTERN = re.compile(r'hash\((.*?)\)') + BYTES_PATTERN = re.compile(rb'hash\((.*?)\)') def __init__(self): self.substitutions = {}