diff --git a/test/ably/rest/resthttp_test.py b/test/ably/rest/resthttp_test.py index a7f83783..b5a2fa4f 100644 --- a/test/ably/rest/resthttp_test.py +++ b/test/ably/rest/resthttp_test.py @@ -192,7 +192,7 @@ async def test_request_headers(self): # Agent assert 'Ably-Agent' in r.request.headers - expr = r"^ably-python\/\d.\d.\d(-beta\.\d)? python\/\d.\d+.\d+$" + expr = r"^ably-python\/\d+.\d+.\d+(-beta\.\d+)? python\/\d.\d+.\d+$" assert re.search(expr, r.request.headers['Ably-Agent']) await ably.close()