8000 updates · commit-0/build_dataset@fb0d766 · GitHub
[go: up one dir, main page]

Skip to content

Commit fb0d766

Browse files
committed
updates
1 parent 6b6c363 commit fb0d766

File tree

2 files changed

+236
-233
lines changed

2 files changed

+236
-233
lines changed

build_swebench_dataset.py

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -61,60 +61,60 @@ def create_instance(
6161
setup["pip_packages"] = raw_info["pip_packages"]
6262
owner, repo = example["repo"].split("/")
6363
if repo == "matplotlib":
64-
test_cmd = "pytest"
64+
test_cmd = "pytest --continue-on-collection-errors"
6565
test_dir = "lib/matplotlib/tests"
6666
src_dir = "lib/matplotlib"
6767
if not "pre_install" in setup:
6868
setup["pre_install"] = []
6969
setup["pre_install"] += ["apt-get update", "apt-get install clang"]
7070
elif repo == "pylint":
71-
test_cmd = "pytest"
71+
test_cmd = "pytest --continue-on-collection-errors"
7272
test_dir = "tests/"
7373
src_dir = "pylint/"
7474
elif repo == "sympy":
75-
test_cmd = "pytest"
75+
test_cmd = "pytest --continue-on-collection-errors"
7676
test_dir = "sympy/"
7777
src_dir = "sympy/"
7878
elif repo == "seaborn":
79-
test_cmd = "pytest -n auto"
79+
test_cmd = "pytest -n auto --continue-on-collection-errors"
8080
test_dir = "tests/"
8181
src_dir = "seaborn/"
8282
elif repo == "flask":
83-
test_cmd = "pytest"
83+
test_cmd = "pytest --continue-on-collection-errors"
8484
test_dir = "tests/"
8585
src_dir = "src/flask/"
8686
elif repo == "astropy":
87-
test_cmd = "pytest"
87+
test_cmd = "pytest --continue-on-collection-errors"
8888
test_dir = "astropy/"
8989
src_dir = "astropy"
9090
if not "pre_install" in setup:
9191
setup["pre_install"] = []
9292
setup["pre_install"] += ["apt-get update", "apt-get install clang"]
9393
elif repo == "requests":
94-
test_cmd = "pytest"
94+
test_cmd = "pytest --continue-on-collection-errors"
9595
test_dir = "tests/"
9696
src_dir = "src/requests/"
9797
elif repo == "xarray":
98-
test_cmd = "pytest -n auto"
98+
test_cmd = "pytest -n auto --continue-on-collection-errors"
9999
test_dir = "tests/"
100100
src_dir = "xarray/"
101101
elif repo == "pytest":
102-
test_cmd = "pytest"
102+
test_cmd = "pytest --continue-on-collection-errors"
103103
test_dir = "testing/"
104104
src_dir = "src/"
105105
elif repo == "sphinx":
106-
test_cmd = "pytest"
106+
test_cmd = "pytest --continue-on-collection-errors"
107107
test_dir = "tests/"
108108
src_dir = "sphinx/"
109109
elif repo == "django":
110-
test_cmd = "PYTHONWARNINGS=always pytest --capture=no"
110+
test_cmd = "PYTHONWARNINGS=always pytest --capture=no --continue-on-collection-errors"
111111
test_dir = "tests/"
112112
src_dir = "django"
113113
if not "pre_install" in setup:
114114
setup["pre_install"] = []
115115
setup["pre_install"] += ["apt-get update", "apt-get install clang"]
116116
elif repo == "scikit-learn":
117-
test_cmd = "pytest"
117+
test_cmd = "pytest --continue-on-collection-errors"
118118
test_dir = "sklearn/"
119119
src_dir = "sklearn/"
120120
if not "pre_install" in setup:
@@ -128,7 +128,7 @@ def create_instance(
128128
"base_commit": example["base_commit"],
129129
"reference_commit": example["environment_setup_commit"],
130130
"setup": setup,
131-
"test": {"test_cmd": test_cmd, "test_dir": test_dir, "PASS_TO_PASS": example["PASS_TO_PASS"], "FAIL_TO_PASS": example["FAIL_TO_PASS"], "patch": example["patch"], "test_patch": example["test_patch"]},
131+
"test": {"test_cmd": test_cmd, "test_dir": "", "PASS_TO_PASS": example["PASS_TO_PASS"], "FAIL_TO_PASS": example["FAIL_TO_PASS"], "patch": example["patch"], "test_patch": example["test_patch"]},
132132
"src_dir": src_dir,
133133
}
134134

0 commit comments

Comments
 (0)
0