(r)
| 451 | |
| 452 | @skip_if_server_version_lt("7.9.0") |
| 453 | def test_hgetex_invalid_inputs(r): |
| 454 | with pytest.raises(exceptions.DataError): |
| 455 | r.hgetex("b", "foo", "1", "3", ex=10, persist=True) |
| 456 | |
| 457 | with pytest.raises(exceptions.DataError): |
| 458 | r.hgetex("b", "foo", ex=10.0, persist=True) |
| 459 | |
| 460 | with pytest.raises(exceptions.DataError): |
| 461 | r.hgetex("b", "foo", ex=10, px=6000) |
| 462 | |
| 463 | with pytest.raises(exceptions.DataError): |
| 464 | r.hgetex("b", ex=10) |
| 465 | |
| 466 | |
| 467 | @skip_if_server_version_lt("7.9.0") |