Skip to content

Commit 0805c83

Browse files
authored
Isolate the test suite from any existing DEFAULT_CONFIG_FILE file (#3612)
1 parent 5e0784a commit 0805c83

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

tests/conftest.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,3 +149,9 @@ def build_pkg(dist_dir: Path, of: Path, distributions: Sequence[DistributionType
149149
@pytest.fixture(scope="session")
150150
def pkg_builder() -> Callable[[Path, Path, Sequence[DistributionType], bool], Path]:
151151
return build_pkg
152+
153+
154+
@pytest.fixture(scope="session", autouse=True)
155+
def no_default_config_ini(session_mocker: MockerFixture) -> None:
156+
filename = str(uuid4())
157+
session_mocker.patch("tox.config.cli.ini.DEFAULT_CONFIG_FILE", Path(filename))

0 commit comments

Comments
 (0)