From 948cd5b8cd3f3393af3163a8365457c05ab26386 Mon Sep 17 00:00:00 2001 From: Roman Bredehoft Date: Fri, 7 Jun 2024 15:52:04 +0200 Subject: [PATCH] chore: fix pandas flaky test --- tests/pandas/test_pandas.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tests/pandas/test_pandas.py b/tests/pandas/test_pandas.py index 1948f2a89..bb2d5f713 100644 --- a/tests/pandas/test_pandas.py +++ b/tests/pandas/test_pandas.py @@ -714,7 +714,9 @@ def check_invalid_schema_values(): ): client.encrypt_from_pandas(pandas_df, schema=schema_float_column) - schema_float_oob = {f"{feat_name}_float_1": {"min": float_min // 2, "max": float_max // 2}} + # Here, we want to make sure that either min or max is out of the distribution. We make sure + # this is always the case (not subject to randomization) by setting 'min' to 'float_max' + schema_float_oob = {f"{feat_name}_float_1": {"min": float_max, "max": float_max}} with pytest.raises( ValueError,