Shorten assert msg

This commit is contained in:
Sofie Van Landeghem 2025-12-31 14:02:19 +01:00 committed by GitHub
parent 07d4bf7161
commit 7f6219e092
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -253,8 +253,4 @@ def test_different_seeds_introduce_variation_when_temperature_nonzero():
outputs.add(tuple(results[0]))
# Sanity check: sampling actually introduces variation
assert len(outputs) > 1, (
f"All seeds produced the same output: {outputs}"
f"with temperature > 0 and different seeds, this is statistically impossible."
f"this implies an issue within the engine."
)
assert len(outputs) > 1, "All seeds produced the same output which is statistically highly improbable."