File: test_virtualenv.py

package info (click to toggle)
python-filelock 3.25.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 348 kB
  • sloc: python: 3,851; makefile: 3
file content (18 lines) | stat: -rw-r--r-- 467 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
from __future__ import annotations

import sys
from typing import TYPE_CHECKING

import pytest
from virtualenv import cli_run

if TYPE_CHECKING:
    from pathlib import Path


@pytest.mark.skipif(
    hasattr(sys, "pypy_version_info"),
    reason="PyPy segfaults in SQLite Cursor.__del__._reset when GC runs during virtualenv imports",
)
def test_virtualenv(tmp_path: Path) -> None:
    cli_run([str(tmp_path), "--no-pip", "--no-setuptools", "--no-periodic-update"])