We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dbb8678 commit 03187d8Copy full SHA for 03187d8
tests/test_commands.py
@@ -1104,7 +1104,7 @@ def test_set_px(self, r):
1104
assert r['a'] == b'1'
1105
assert 0 < r.pttl('a') <= 10000
1106
assert 0 < r.ttl('a') <= 10
1107
- with pytest.raises(exceptions.DataError):
+ with pytest.raises(exceptions.ResponseError):
1108
assert r.set('a', '1', px=10.0)
1109
1110
@skip_if_server_version_lt('2.6.0')
@@ -1118,7 +1118,7 @@ def test_set_px_timedelta(self, r):
1118
def test_set_ex(self, r):
1119
assert r.set('a', '1', ex=10)
1120
1121
1122
assert r.set('a', '1', ex=10.0)
1123
1124
0 commit comments