diff options
author | Jon Dufresne <jon.dufresne@gmail.com> | 2018-12-27 04:44:22 -0500 |
---|---|---|
committer | Jonathan Huot <JonathanHuot@users.noreply.github.com> | 2018-12-27 10:44:22 +0100 |
commit | b79b5511b01c230037abee5b636f6f03378c93f1 (patch) | |
tree | 91852835ca55829a67f103c7b342cb58cfd9669f | |
parent | 729fb9fa17efb8a38bd50f5e180802d6034c351b (diff) | |
download | oauthlib-b79b5511b01c230037abee5b636f6f03378c93f1.tar.gz |
Fix invalid escape sequence in tests (#637)
Fixes warning when running tests:
```
tests/oauth1/rfc5849/endpoints/test_base.py:63
oauthlib/tests/oauth1/rfc5849/endpoints/test_base.py:63: DeprecationWarning: invalid escape sequence \d
headers['Authorization'] = sub('timestamp="\d*k?"',
```
-rw-r--r-- | tests/oauth1/rfc5849/endpoints/test_base.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/oauth1/rfc5849/endpoints/test_base.py b/tests/oauth1/rfc5849/endpoints/test_base.py index 8c41cf2..60f7860 100644 --- a/tests/oauth1/rfc5849/endpoints/test_base.py +++ b/tests/oauth1/rfc5849/endpoints/test_base.py @@ -60,7 +60,7 @@ class BaseEndpointTest(TestCase): def test_expired_timestamp(self): headers = {} for pattern in ('12345678901', '4567890123', '123456789K'): - headers['Authorization'] = sub('timestamp="\d*k?"', + headers['Authorization'] = sub(r'timestamp="\d*k?"', 'timestamp="%s"' % pattern, self.headers['Authorization']) h, b, s = self.endpoint.create_request_token_response( |