Skip to content

Commit 03187d8

Browse files
committed
unit test fix from bad merge
1 parent dbb8678 commit 03187d8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_commands.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1104,7 +1104,7 @@ def test_set_px(self, r):
11041104
assert r['a'] == b'1'
11051105
assert 0 < r.pttl('a') <= 10000
11061106
assert 0 < r.ttl('a') <= 10
1107-
with pytest.raises(exceptions.DataError):
1107+
with pytest.raises(exceptions.ResponseError):
11081108
assert r.set('a', '1', px=10.0)
11091109

11101110
@skip_if_server_version_lt('2.6.0')
@@ -1118,7 +1118,7 @@ def test_set_px_timedelta(self, r):
11181118
def test_set_ex(self, r):
11191119
assert r.set('a', '1', ex=10)
11201120
assert 0 < r.ttl('a') <= 10
1121-
with pytest.raises(exceptions.DataError):
1121+
with pytest.raises(exceptions.ResponseError):
11221122
assert r.set('a', '1', ex=10.0)
11231123

11241124
@skip_if_server_version_lt('2.6.0')

0 commit comments

Comments
 (0)