@@ -86,10 +86,10 @@ def test(tmp_path):
8686 "CIBW_TEST_REQUIRES" : "pytest" ,
8787 # the 'false ||' bit is to ensure this command runs in a shell on
8888 # mac/linux.
89- "CIBW_TEST_COMMAND" : f"false || { utils .invoke_pytest ()} . /test" ,
89+ "CIBW_TEST_COMMAND" : f"false || { utils .invoke_pytest ()} {{project}} /test" ,
9090 # pytest fails on GraalPy 24.2.0 on Windows so we skip it there
9191 # until https://github.com/oracle/graalpython/issues/490 is fixed
92- "CIBW_TEST_COMMAND_WINDOWS" : "COLOR 00 || where graalpy || pytest . /test" ,
92+ "CIBW_TEST_COMMAND_WINDOWS" : "COLOR 00 || where graalpy || pytest {project} /test" ,
9393 },
9494 )
9595
@@ -109,10 +109,10 @@ def test_extras_require(tmp_path):
109109 "CIBW_TEST_EXTRAS" : "test" ,
110110 # the 'false ||' bit is to ensure this command runs in a shell on
111111 # mac/linux.
112- "CIBW_TEST_COMMAND" : f"false || { utils .invoke_pytest ()} . /test" ,
112+ "CIBW_TEST_COMMAND" : f"false || { utils .invoke_pytest ()} {{project}} /test" ,
113113 # pytest fails on GraalPy 24.2.0 on Windows so we skip it there
114114 # until https://github.com/oracle/graalpython/issues/490 is fixed
115- "CIBW_TEST_COMMAND_WINDOWS" : "COLOR 00 || where graalpy || pytest . /test" ,
115+ "CIBW_TEST_COMMAND_WINDOWS" : "COLOR 00 || where graalpy || pytest {project} /test" ,
116116 },
117117 single_python = True ,
118118 )
@@ -143,10 +143,10 @@ def test_dependency_groups(tmp_path):
143143 "CIBW_TEST_GROUPS" : "dev" ,
144144 # the 'false ||' bit is to ensure this command runs in a shell on
145145 # mac/linux.
146- "CIBW_TEST_COMMAND" : f"false || { utils .invoke_pytest ()} . /test" ,
146+ "CIBW_TEST_COMMAND" : f"false || { utils .invoke_pytest ()} {{project}} /test" ,
147147 # pytest fails on GraalPy 24.2.0 on Windows so we skip it there
148148 # until https://github.com/oracle/graalpython/issues/490 is fixed
149- "CIBW_TEST_COMMAND_WINDOWS" : "COLOR 00 || where graalpy || pytest . /test" ,
149+ "CIBW_TEST_COMMAND_WINDOWS" : "COLOR 00 || where graalpy || pytest {project} /test" ,
150150 },
151151 single_python = True ,
152152 )
@@ -178,7 +178,7 @@ def test_failing_test(tmp_path):
178178 output_dir = output_dir ,
179179 add_env = {
180180 "CIBW_TEST_REQUIRES" : "pytest" ,
181- "CIBW_TEST_COMMAND" : f"{ utils .invoke_pytest ()} . /test" ,
181+ "CIBW_TEST_COMMAND" : f"{ utils .invoke_pytest ()} {{project}} /test" ,
182182 # CPython 3.8 when running on macOS arm64 is unusual. The build
183183 # always runs in x86_64, so the arm64 tests are not run. See
184184 # #1169 for reasons why. That means the build succeeds, which
0 commit comments