Skip to content

Commit 191824c

Browse files
committed
Fix occasional failures for tests dealing with binary bodies
1 parent 4cea2e8 commit 191824c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/utils/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ class Encoder:
8282

8383
TEMPLATE = 'hash({})'
8484

85-
STR_PATTERN = re.compile(r'hash\((.*)\)')
86-
BYTES_PATTERN = re.compile(rb'hash\((.*)\)')
85+
STR_PATTERN = re.compile(r'hash\((.*?)\)')
86+
BYTES_PATTERN = re.compile(rb'hash\((.*?)\)')
8787

8888
def __init__(self):
8989
self.substitutions = {}

0 commit comments

Comments
 (0)