Skip to content

Commit 382d549

Browse files
committed
remove unused venv fixture
1 parent acc1bc9 commit 382d549

File tree

3 files changed

+6
-24
lines changed

3 files changed

+6
-24
lines changed

poetry.lock

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,6 @@ pytest-mock = ">=3.10"
4949
build = ">=0.10.0"
5050
setuptools = ">=60"
5151
tomli-w = "^1.0.0"
52-
virtualenv = ">=20.21"
5352
trove-classifiers = ">=2022.5.19"
5453

5554
[tool.poetry.group.typing.dependencies]
@@ -127,7 +126,6 @@ exclude = [
127126
module = [
128127
'fastjsonschema.*',
129128
'lark.*',
130-
'virtualenv.*',
131129
]
132130
ignore_missing_imports = true
133131

tests/conftest.py

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
from typing import Callable
1010

1111
import pytest
12-
import virtualenv
1312

1413
from poetry.core.factory import Factory
1514
from poetry.core.utils._compat import WINDOWS
@@ -88,21 +87,6 @@ def temporary_directory() -> Iterator[Path]:
8887
yield Path(tmp)
8988

9089

91-
@pytest.fixture
92-
def venv(temporary_directory: Path) -> Path:
93-
venv_dir = temporary_directory / ".venv"
94-
virtualenv.cli_run(
95-
[
96-
"--no-download",
97-
"--no-periodic-update",
98-
"--python",
99-
sys.executable,
100-
venv_dir.as_posix(),
101-
]
102-
)
103-
return venv_dir
104-
105-
10690
@pytest.fixture
10791
def python(venv: Path) -> str:
10892
return venv.joinpath("Scripts/Python.exe" if WINDOWS else "bin/python").as_posix()

0 commit comments

Comments
 (0)