Skip to content

Commit b2d71ee

Browse files
committed
regression fix
1 parent c307a90 commit b2d71ee

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

commit0/harness/spec.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,8 @@ def make_repo_script_list(instance: RepoInstance, repo_directory: str) -> list[s
9898
repo = instance["repo"]
9999
env_setup_commit = instance["reference_commit"]
100100
base_commit = instance["base_commit"]
101-
if float(specs["python"]) < 3.7:
101+
version = int(specs["python"].split(".")[-1])
102+
if version < 7:
102103
specs["python"] = 3.7
103104

104105
setup_commands = [

0 commit comments

Comments
 (0)