(r)
| 604 | |
| 605 | @skip_if_server_version_lt("7.9.0") |
| 606 | def test_hsetex_invalid_inputs(r): |
| 607 | with pytest.raises(exceptions.DataError): |
| 608 | r.hsetex("b", "foo", "bar", ex=10.0) |
| 609 | |
| 610 | with pytest.raises(exceptions.DataError): |
| 611 | r.hsetex("b", None, None) |
| 612 | |
| 613 | with pytest.raises(exceptions.DataError): |
| 614 | r.hsetex("b", "foo", "bar", items=["i1", 11, "i2"], px=6000) |
| 615 | |
| 616 | with pytest.raises(exceptions.DataError): |
| 617 | r.hsetex("b", "foo", "bar", ex=10, keepttl=True) |