@@ -190,21 +190,18 @@ def BIND(v: str, env: Env) -> bool:
190190
191191# CRT = container runtime
192192CRT_PARAMS = pytest .mark .parametrize (
193- "crt_params_ " ,
193+ "crt_params " ,
194194 [
195- NoContainer ,
196- pytest .param (Docker , marks = needs_docker ),
197- pytest .param (Singularity , marks = needs_singularity ),
195+ NoContainer () ,
196+ pytest .param (Docker () , marks = needs_docker ),
197+ pytest .param (Singularity () , marks = needs_singularity ),
198198 ],
199199)
200200
201201
202202@CRT_PARAMS
203- def test_basic (
204- crt_params_ : type [CheckHolder ], tmp_path : Path , monkeypatch : pytest .MonkeyPatch
205- ) -> None :
203+ def test_basic (crt_params : CheckHolder , tmp_path : Path , monkeypatch : pytest .MonkeyPatch ) -> None :
206204 """Test that basic env vars (only) show up."""
207- crt_params = crt_params_ ()
208205 tmp_prefix = str (tmp_path / "canary" )
209206 extra_env = {
210207 "USEDVAR" : "VARVAL" ,
@@ -224,10 +221,9 @@ def test_basic(
224221
225222@CRT_PARAMS
226223def test_preserve_single (
227- crt_params_ : type [ CheckHolder ] , tmp_path : Path , monkeypatch : pytest .MonkeyPatch
224+ crt_params : CheckHolder , tmp_path : Path , monkeypatch : pytest .MonkeyPatch
228225) -> None :
229226 """Test that preserving a single env var works."""
230- crt_params = crt_params_ ()
231227 tmp_prefix = str (tmp_path / "canary" )
232228 extra_env = {
233229 "USEDVAR" : "VARVAL" ,
@@ -253,13 +249,12 @@ def test_preserve_single(
253249
254250@CRT_PARAMS
255251def test_preserve_single_missing (
256- crt_params_ : type [ CheckHolder ] ,
252+ crt_params : CheckHolder ,
257253 tmp_path : Path ,
258254 monkeypatch : pytest .MonkeyPatch ,
259255 caplog : pytest .LogCaptureFixture ,
260256) -> None :
261257 """Test that attempting to preserve an unset env var produces a warning."""
262- crt_params = crt_params_ ()
263258 tmp_prefix = str (tmp_path / "canary" )
264259 args = crt_params .flags + [
265260 f"--tmpdir-prefix={ tmp_prefix } " ,
@@ -283,10 +278,9 @@ def test_preserve_single_missing(
283278
284279@CRT_PARAMS
285280def test_preserve_all (
286- crt_params_ : type [ CheckHolder ] , tmp_path : Path , monkeypatch : pytest .MonkeyPatch
281+ crt_params : CheckHolder , tmp_path : Path , monkeypatch : pytest .MonkeyPatch
287282) -> None :
288283 """Test that preserving all works."""
289- crt_params = crt_params_ ()
290284 tmp_prefix = str (tmp_path / "canary" )
291285 extra_env = {
292286 "USEDVAR" : "VARVAL" ,
0 commit comments