Skip to content

Commit 5ffd21a

Browse files
committed
Fix regexp in test_request_headers test
It didn't account that ably-python versions can have multiple digits for major/minor/patch parts
1 parent b7bd2ca commit 5ffd21a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/ably/rest/resthttp_test.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,7 +192,7 @@ async def test_request_headers(self):
192192

193193
# Agent
194194
assert 'Ably-Agent' in r.request.headers
195-
expr = r"^ably-python\/\d.\d.\d(-beta\.\d)? python\/\d.\d+.\d+$"
195+
expr = r"^ably-python\/\d+.\d+.\d+(-beta\.\d+)? python\/\d.\d+.\d+$"
196196
assert re.search(expr, r.request.headers['Ably-Agent'])
197197
await ably.close()
198198

0 commit comments

Comments
 (0)