From 9cbbff0abf8c6ebae7cacd9be878b0d10bfd5376 Mon Sep 17 00:00:00 2001 From: Albert Villanova del Moral <8515462+albertvillanova@users.noreply.github.com> Date: Thu, 9 Oct 2025 12:55:17 +0200 Subject: [PATCH] Skip impacted tests for Python 3.13.8 --- tests/test_judges.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/tests/test_judges.py b/tests/test_judges.py index bba1ffffbbb..d4e59cd4b2f 100644 --- a/tests/test_judges.py +++ b/tests/test_judges.py @@ -12,6 +12,7 @@ # See the License for the specific language governing permissions and # limitations under the License. +import sys import time import pytest @@ -59,6 +60,9 @@ def load_pair_rm_judge(self): raise ValueError("Failed to load PairRMJudge") @require_llm_blender + @pytest.mark.skipif( + sys.version_info == (3, 13, 8), reason="Python 3.13.8 has a bug in inspect.BlockFinder (cpython GH-139783)" + ) def test_pair_rm_judge(self): judge = self.load_pair_rm_judge() prompts, completions = self._get_prompts_and_pairwise_completions() @@ -68,6 +72,9 @@ def test_pair_rm_judge(self): assert ranks == [0, 1] @require_llm_blender + @pytest.mark.skipif( + sys.version_info == (3, 13, 8), reason="Python 3.13.8 has a bug in inspect.BlockFinder (cpython GH-139783)" + ) def test_pair_rm_judge_return_scores(self): judge = self.load_pair_rm_judge() prompts, completions = self._get_prompts_and_pairwise_completions()