Skip to content

Commit 81d4cf9

Browse files
authored
Add test for virtualenv stability (#344)
1 parent 192f1ef commit 81d4cf9

File tree

3 files changed

+14
-0
lines changed

3 files changed

+14
-0
lines changed

pyproject.toml

+1
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ optional-dependencies.testing = [
5454
"pytest-cov>=4.1",
5555
"pytest-mock>=3.12",
5656
"pytest-timeout>=2.2",
57+
"virtualenv>=20.26.2",
5758
]
5859
optional-dependencies.typing = [
5960
"typing-extensions>=4.8; python_version<'3.11'",

tests/test_virtualenv.py

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from __future__ import annotations
2+
3+
from typing import TYPE_CHECKING
4+
5+
from virtualenv import cli_run
6+
7+
if TYPE_CHECKING:
8+
from pathlib import Path
9+
10+
11+
def test_virtualenv(tmp_path: Path) -> None:
12+
cli_run([str(tmp_path), "--no-pip", "--no-setuptools", "--no-periodic-update"])

tox.ini

+1
Original file line numberDiff line numberDiff line change
@@ -107,3 +107,4 @@ extras =
107107
commands =
108108
python -m pip list --format=columns
109109
python -c 'import sys; print(sys.executable)'
110+
uv_seed = true

0 commit comments

Comments
 (0)