Skip to content

Commit 1f131af

Browse files
committed
Fix value in error message about negative relative tolerance
1 parent 4dbb294 commit 1f131af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/_pytest/python_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,7 @@ def set_default(x, default):
317317

318318
if relative_tolerance < 0:
319319
raise ValueError(
320-
f"relative tolerance can't be negative: {absolute_tolerance}"
320+
f"relative tolerance can't be negative: {relative_tolerance}"
321321
)
322322
if math.isnan(relative_tolerance):
323323
raise ValueError("relative tolerance can't be NaN.")

0 commit comments

Comments
 (0)