mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
bpo-45582: Port getpath[p].c to Python (GH-29041)
The getpath.py file is frozen at build time and executed as code over a namespace. It is never imported, nor is it meant to be importable or reusable. However, it should be easier to read, modify, and patch than the previous code. This commit attempts to preserve every previously tested quirk, but these may be changed in the future to better align platforms.
This commit is contained in:
parent
9f2f7e4226
commit
99fcf15052
40 changed files with 3686 additions and 3838 deletions
|
@ -102,6 +102,10 @@ class TestSysConfig(unittest.TestCase):
|
|||
|
||||
def test_get_path(self):
|
||||
config_vars = get_config_vars()
|
||||
if os.name == 'nt':
|
||||
# On Windows, we replace the native platlibdir name with the
|
||||
# default so that POSIX schemes resolve correctly
|
||||
config_vars = config_vars | {'platlibdir': 'lib'}
|
||||
for scheme in _INSTALL_SCHEMES:
|
||||
for name in _INSTALL_SCHEMES[scheme]:
|
||||
expected = _INSTALL_SCHEMES[scheme][name].format(**config_vars)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue