Commit Graph

4 Commits

Author SHA1 Message Date
Tzu-ping Chung 42359a9605 Migrate tests to use pathlib.Path
The pip-specific Path implementation has been removed, and all its
usages replaced by pathlib.Path. The tmpdir and tmpdir_factory fixtures
are also removed, and all usages are replaced by tmp_path and
tmp_path_factory, which use pathlib.Path.

The pip() function now also accepts pathlib.Path so we don't need to put
str() everywhere. Path arguments are coerced with os.fspath() into str.
2022-06-08 19:58:46 +08:00
Pradyun Gedam 8068b30a09
Revert "Add additional context to `protected_pip.py` about how it works"
This reverts commit 84ee57d126.
2022-04-30 12:50:58 +01:00
Pradyun Gedam 84ee57d126
Add additional context to `protected_pip.py` about how it works
This should make it easier to understand what this file is doing,
and when it is useful.
2022-04-29 16:20:14 +01:00
Pradyun Gedam 1a2d2a188f
Rename `tox_pip.py` to `protected_pip.py`
This is in line with what the only point of use (in noxfile.py) calls
this.
2022-04-29 16:10:26 +01:00
Renamed from tools/tox_pip.py (Browse further)