diff options
Diffstat (limited to 'tests/test_commands.py')
-rw-r--r-- | tests/test_commands.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_commands.py b/tests/test_commands.py index faa1e92..fec453f 100644 --- a/tests/test_commands.py +++ b/tests/test_commands.py @@ -1104,6 +1104,8 @@ class TestRedisCommands: assert r['a'] == b'1' assert 0 < r.pttl('a') <= 10000 assert 0 < r.ttl('a') <= 10 + with pytest.raises(exceptions.DataError): + assert r.set('a', '1', px=10.0) @skip_if_server_version_lt('2.6.0') def test_set_px_timedelta(self, r): @@ -1116,6 +1118,8 @@ class TestRedisCommands: def test_set_ex(self, r): assert r.set('a', '1', ex=10) assert 0 < r.ttl('a') <= 10 + with pytest.raises(exceptions.DataError): + assert r.set('a', '1', ex=10.0) @skip_if_server_version_lt('2.6.0') def test_set_ex_timedelta(self, r): |