Fix occasional failures for tests dealing with binary bodies

This commit is contained in:
Jakub Roztocil 2024-10-26 19:17:48 +02:00
parent 4cea2e80af
commit 191824ce30

View File

@ -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 = {}