Skip to content

Commit 1684ef2

Browse files
Fix Python version check for skipping tests on Python 3.13.8 (#4246)
1 parent aab21eb commit 1684ef2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_judges.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def load_pair_rm_judge(self):
6161

6262
@require_llm_blender
6363
@pytest.mark.skipif(
64-
sys.version_info == (3, 13, 8), reason="Python 3.13.8 has a bug in inspect.BlockFinder (cpython GH-139783)"
64+
sys.version_info[:3] == (3, 13, 8), reason="Python 3.13.8 has a bug in inspect.BlockFinder (cpython GH-139783)"
6565
)
6666
def test_pair_rm_judge(self):
6767
judge = self.load_pair_rm_judge()
@@ -73,7 +73,7 @@ def test_pair_rm_judge(self):
7373

7474
@require_llm_blender
7575
@pytest.mark.skipif(
76-
sys.version_info == (3, 13, 8), reason="Python 3.13.8 has a bug in inspect.BlockFinder (cpython GH-139783)"
76+
sys.version_info[:3] == (3, 13, 8), reason="Python 3.13.8 has a bug in inspect.BlockFinder (cpython GH-139783)"
7777
)
7878
def test_pair_rm_judge_return_scores(self):
7979
judge = self.load_pair_rm_judge()

0 commit comments

Comments
 (0)