This website requires JavaScript.
Explore
Help
Sign in
Stowage
/
cpython
Watch
2
Star
0
Fork
You've already forked cpython
0
mirror of
https://github.com/python/cpython.git
synced
2025-10-28 20:25:04 +00:00
Code
Issues
Projects
Releases
Packages
Wiki
Activity
0e21ed7c09
cpython
/
Lib
/
test
/
test_pathlib
/
support
/
__init__.py
3 lines
91 B
Python
Raw
Normal View
History
Unescape
Escape
GH-128520: pathlib ABCs: allow tests to be run externally (#131315) Adjust the tests for the `pathlib.types` module so that they can be run against the `pathlib-abc` PyPI package, which is a backport of the module for older Python versions. Specifically, we add a `.support.is_pypi` switch that is false in the stdlib and true in the pathlib-abc package. This controls which package we import, and whether or not we run tests against `PurePath` and `Path`. For compatibility with older Python versions, we stop using `zipfile.ZipFile.mkdir()` and `zipfile.ZipInfo._for_archive()`.
2025-03-21 22:18:20 +00:00
# Set to 'True' if the tests are run against the pathlib-abc PyPI package.
is_pypi
=
False
Reference in a new issue
Copy permalink