1
1
Fork 0
mirror of https://github.com/pypa/pip synced 2023-12-13 21:30:23 +01:00
pip/tests/unit/test_utils_filesystem.py
Pradyun Gedam 428e886ad6
Drop out-of-tree/in-tree build transition flags
These were intended to help users transition when the default behaviour
changed to no longer perform out-of-tree builds. The transition is now
considered complete.
2022-04-08 12:20:36 +01:00

22 lines
350 B
Python

import os
from tests.lib.path import Path
def make_file(path: str) -> None:
Path(path).touch()
def make_valid_symlink(path: str) -> None:
target = path + "1"
make_file(target)
os.symlink(target, path)
def make_broken_symlink(path: str) -> None:
os.symlink("foo", path)
def make_dir(path: str) -> None:
os.mkdir(path)