Skip to content

Commit

Permalink
Fix occasional failures for tests dealing with binary bodies
Browse files Browse the repository at this point in the history
  • Loading branch information
jkbrzt committed Oct 26, 2024
1 parent 4cea2e8 commit 191824c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {}
Expand Down

0 comments on commit 191824c

Please sign in to comment.