@@ -61,60 +61,60 @@ def create_instance(
61
61
setup ["pip_packages" ] = raw_info ["pip_packages" ]
62
62
owner , repo = example ["repo" ].split ("/" )
63
63
if repo == "matplotlib" :
64
- test_cmd = "pytest"
64
+ test_cmd = "pytest --continue-on-collection-errors "
65
65
test_dir = "lib/matplotlib/tests"
66
66
src_dir = "lib/matplotlib"
67
67
if not "pre_install" in setup :
68
68
setup ["pre_install" ] = []
69
69
setup ["pre_install" ] += ["apt-get update" , "apt-get install clang" ]
70
70
elif repo == "pylint" :
71
- test_cmd = "pytest"
71
+ test_cmd = "pytest --continue-on-collection-errors "
72
72
test_dir = "tests/"
73
73
src_dir = "pylint/"
74
74
elif repo == "sympy" :
75
- test_cmd = "pytest"
75
+ test_cmd = "pytest --continue-on-collection-errors "
76
76
test_dir = "sympy/"
77
77
src_dir = "sympy/"
78
78
elif repo == "seaborn" :
79
- test_cmd = "pytest -n auto"
79
+ test_cmd = "pytest -n auto --continue-on-collection-errors "
80
80
test_dir = "tests/"
81
81
src_dir = "seaborn/"
82
82
elif repo == "flask" :
83
- test_cmd = "pytest"
83
+ test_cmd = "pytest --continue-on-collection-errors "
84
84
test_dir = "tests/"
85
85
src_dir = "src/flask/"
86
86
elif repo == "astropy" :
87
- test_cmd = "pytest"
87
+ test_cmd = "pytest --continue-on-collection-errors "
88
88
test_dir = "astropy/"
89
89
src_dir = "astropy"
90
90
if not "pre_install" in setup :
91
91
setup ["pre_install" ] = []
92
92
setup ["pre_install" ] += ["apt-get update" , "apt-get install clang" ]
93
93
elif repo == "requests" :
94
- test_cmd = "pytest"
94
+ test_cmd = "pytest --continue-on-collection-errors "
95
95
test_dir = "tests/"
96
96
src_dir = "src/requests/"
97
97
elif repo == "xarray" :
98
- test_cmd = "pytest -n auto"
98
+ test_cmd = "pytest -n auto --continue-on-collection-errors "
99
99
test_dir = "tests/"
100
100
src_dir = "xarray/"
101
101
elif repo == "pytest" :
102
- test_cmd = "pytest"
102
+ test_cmd = "pytest --continue-on-collection-errors "
103
103
test_dir = "testing/"
104
104
src_dir = "src/"
105
105
elif repo == "sphinx" :
106
- test_cmd = "pytest"
106
+ test_cmd = "pytest --continue-on-collection-errors "
107
107
test_dir = "tests/"
108
108
src_dir = "sphinx/"
109
109
elif repo == "django" :
110
- test_cmd = "PYTHONWARNINGS=always pytest --capture=no"
110
+ test_cmd = "PYTHONWARNINGS=always pytest --capture=no --continue-on-collection-errors "
111
111
test_dir = "tests/"
112
112
src_dir = "django"
113
113
if not "pre_install" in setup :
114
114
setup ["pre_install" ] = []
115
115
setup ["pre_install" ] += ["apt-get update" , "apt-get install clang" ]
116
116
elif repo == "scikit-learn" :
117
- test_cmd = "pytest"
117
+ test_cmd = "pytest --continue-on-collection-errors "
118
118
test_dir = "sklearn/"
119
119
src_dir = "sklearn/"
120
120
if not "pre_install" in setup :
@@ -128,7 +128,7 @@ def create_instance(
128
128
"base_commit" : example ["base_commit" ],
129
129
"reference_commit" : example ["environment_setup_commit" ],
130
130
"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" ]},
132
132
"src_dir" : src_dir ,
133
133
}
134
134
0 commit comments