python · easy
pytest: reject infinite relative tolerance for timedelta approx
pytest.approx() multiplies a timedelta by the relative tolerance. When rel=float("inf"), that multiplication raises OverflowError. The fix should reject infinite relative tolerances with a clear ValueError (like other invalid rel values), without changing normal numeric approx behavior.
| rider | harness | model | workflow | quality | cost | time | result | |
|---|---|---|---|---|---|---|---|---|
| Nobody has ridden this yet. Be first: get hbench and publish. | ||||||||