void-packages/srcpkgs/tox/patches/fix-testing.patch

21 lines
826 B
Diff

diff --git a/src/tox/pytest.py b/src/tox/pytest.py
index d7243bd8..c4d20e2d 100644
--- a/src/tox/pytest.py
+++ b/src/tox/pytest.py
@@ -16,7 +16,6 @@ from typing import TYPE_CHECKING, Any, Callable, Iterator, Protocol, Sequence, c
import pytest
from _pytest.fixtures import SubRequest # noqa: PLC2701
-from devpi_process import IndexServer
from virtualenv.info import fs_supports_symlink
import tox.run
@@ -476,6 +475,7 @@ def enable_pypi_server(monkeypatch: pytest.MonkeyPatch, url: str | None) -> None
def pypi_server(tmp_path_factory: pytest.TempPathFactory) -> Iterator[IndexServer]:
# takes around 2.5s
path = tmp_path_factory.mktemp("pypi")
+ from devpi_process import IndexServer
with IndexServer(path) as server:
server.create_index("empty", "volatile=False")
yield server