@@ -110,7 +110,7 @@ def test_tiffreader_non_tiled_metadata(
110110
111111def test_tiffreader_fallback_to_virtual (
112112 monkeypatch : pytest .MonkeyPatch ,
113- tmp_path : Path ,
113+ track_tmp_path : Path ,
114114) -> None :
115115 """Test fallback to VirtualWSIReader.
116116
@@ -135,7 +135,7 @@ def __init__(
135135
136136 monkeypatch .setattr (wsireader , "TIFFWSIReader" , DummyTIFFWSIReader )
137137
138- dummy_file = tmp_path / "dummy.tiff"
138+ dummy_file = track_tmp_path / "dummy.tiff"
139139 dummy_img = np .zeros ((10 , 10 , 3 ), dtype = np .uint8 )
140140 cv2 .imwrite (str (dummy_file ), dummy_img )
141141
@@ -144,10 +144,10 @@ def __init__(
144144
145145
146146def test_try_tiff_raises_other_valueerror (
147- monkeypatch : pytest .MonkeyPatch , tmp_path : Path
147+ monkeypatch : pytest .MonkeyPatch , track_tmp_path : Path
148148) -> None :
149149 """Test try_tiff raises ValueError if not an unsupported TIFF format."""
150- tiff_path = tmp_path / "test.tiff"
150+ tiff_path = track_tmp_path / "test.tiff"
151151 Image .new ("RGB" , (10 , 10 ), color = "white" ).save (tiff_path )
152152
153153 # Patch TIFFWSIReader to raise a different ValueError
@@ -480,11 +480,11 @@ def test_get_ome_objective_power_none() -> None:
480480
481481
482482def test_handle_tiff_wsi_returns_tiff_reader (
483- monkeypatch : pytest .MonkeyPatch , tmp_path : Path
483+ monkeypatch : pytest .MonkeyPatch , track_tmp_path : Path
484484) -> None :
485485 """Test that _handle_tiff_wsi returns TIFFWSIReader for valid TIFF image."""
486486 # Create a valid TIFF image using PIL
487- tiff_path = tmp_path / "dummy.tiff"
487+ tiff_path = track_tmp_path / "dummy.tiff"
488488 image = Image .new ("RGB" , (10 , 10 ), color = "white" )
489489 image .save (tiff_path )
490490
@@ -513,11 +513,11 @@ def raise_openslide_error(*args: object, **kwargs: object) -> None:
513513
514514
515515def test_handle_tiff_wsi_openslide_error (
516- monkeypatch : pytest .MonkeyPatch , tmp_path : Path
516+ monkeypatch : pytest .MonkeyPatch , track_tmp_path : Path
517517) -> None :
518518 """Test _handle_tiff_wsi when OpenSlideWSIReader raises."""
519519 # Create a valid TIFF image
520- tiff_path = tmp_path / "test.tiff"
520+ tiff_path = track_tmp_path / "test.tiff"
521521 Image .new ("RGB" , (10 , 10 ), color = "white" ).save (tiff_path )
522522
523523 # Patch detect_format to return a non-None value
@@ -543,11 +543,11 @@ def test_handle_tiff_wsi_openslide_error(
543543
544544
545545def test_handle_tiff_wsi_openslide_success (
546- monkeypatch : pytest .MonkeyPatch , tmp_path : Path
546+ monkeypatch : pytest .MonkeyPatch , track_tmp_path : Path
547547) -> None :
548548 """Test _handle_tiff_wsi returns OpenSlideWSIReader when detect_format is valid."""
549549 # Create a valid TIFF image
550- tiff_path = tmp_path / "test.tiff"
550+ tiff_path = track_tmp_path / "test.tiff"
551551 Image .new ("RGB" , (10 , 10 ), color = "white" ).save (tiff_path )
552552
553553 # Patch detect_format to return a valid format
0 commit comments