Skip to content

Commit baa3da3

Browse files
committed
remove tmp_path_factory
1 parent bade123 commit baa3da3

File tree

1 file changed

+0
-22
lines changed

1 file changed

+0
-22
lines changed

tests/conftest.py

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -76,25 +76,3 @@ def segy_export_tmp(tmp_path_factory: pytest.TempPathFactory) -> Path:
7676
def empty_mdio_dir(tmp_path_factory: pytest.TempPathFactory) -> Path:
7777
"""Make a temp file for empty MDIO testing."""
7878
return tmp_path_factory.mktemp(r"empty_mdio_dir")
79-
80-
81-
# Uncomment the function below for local debugging
82-
# @pytest.fixture(scope="session")
83-
# def tmp_path_factory() -> pytest.TempPathFactory:
84-
# """Custom tmp_path_factory implementation for local debugging."""
85-
# from pathlib import Path # noqa: PLC0415
86-
87-
# class DebugTempPathFactory:
88-
# def __init__(self) -> None:
89-
# self._retention_policy = "all"
90-
91-
# def mktemp(self, basename: str, numbered: bool = True) -> Path:
92-
# _ = numbered
93-
# path = self.getbasetemp() / basename
94-
# path.mkdir(parents=True, exist_ok=True)
95-
# return path
96-
97-
# def getbasetemp(self) -> Path:
98-
# return Path("tmp")
99-
100-
# return DebugTempPathFactory()

0 commit comments

Comments
 (0)