Debian Codegraph @

tests/test_virtualenv.py

raw
1 from __future__ import annotations
2
3 import sys
4 from typing import TYPE_CHECKING
5
6 import pytest
7 from virtualenv import cli_run
8
9 if TYPE_CHECKING:
10 from pathlib import Path
11
12
13 @pytest.mark.skipif(
14 hasattr(sys, "pypy_version_info"),
15 reason="PyPy segfaults in SQLite Cursor.__del__._reset when GC runs during virtualenv imports",
16 )
17 def test_virtualenv(tmp_path: Path) -> None:
18 cli_run([str(tmp_path), "--no-pip", "--no-setuptools", "--no-periodic-update"])