Skip to content

Commit 7ebb584

Browse files
committed
respect any value
1 parent 70d61cb commit 7ebb584

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

eval_protocol/pytest/plugin.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -183,16 +183,12 @@ def _normalize_number(val: Optional[str]) -> Optional[str]:
183183

184184

185185
def _normalize_success_threshold(val: Optional[str]) -> Optional[float]:
186-
"""Normalize success threshold value as float between 0.0 and 1.0."""
186+
"""Normalize success threshold value as float."""
187187
if val is None:
188188
return None
189189

190190
try:
191-
threshold_float = float(val.strip())
192-
if 0.0 <= threshold_float <= 1.0:
193-
return threshold_float
194-
else:
195-
return None # threshold must be between 0 and 1
191+
return float(val.strip())
196192
except ValueError:
197193
return None
198194

0 commit comments

Comments
 (0)