diff options
author | Andy McCurdy <andy@andymccurdy.com> | 2018-10-31 23:12:18 -0700 |
---|---|---|
committer | Andy McCurdy <andy@andymccurdy.com> | 2018-10-31 23:12:18 -0700 |
commit | 47dc6aec85dab10a2a1a6dfbb25f78062c7285d9 (patch) | |
tree | a90d86c4e9923cf8a552a4d122a2ad04797c8c00 | |
parent | c22956dcb23845830b471b5c8bbdf675f3b9debb (diff) | |
download | redis-py-47dc6aec85dab10a2a1a6dfbb25f78062c7285d9.tar.gz |
python 2 likes binary regex hints specified as 'br' rather than 'rb'
-rw-r--r-- | tests/test_commands.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py index 991d50a..78888fb 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -1633,7 +1633,7 @@ class TestRedisCommands(object): def test_xadd(self, r): stream = 'stream' message_id = r.xadd(stream, {'foo': 'bar'}) - assert re.match(rb'[0-9]+\-[0-9]+', message_id) + assert re.match(br'[0-9]+\-[0-9]+', message_id) # explicit message id message_id = b('9999999999999999999-0') |