diff options
author | Victor Stinner <vstinner@python.org> | 2020-06-11 15:28:52 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-11 15:28:52 (GMT) |
commit | d72b9644a3e6eec83be48b1ebc2ec6ca776134d3 (patch) | |
tree | 5ea7e7aa01e7f10f35d8b70837c73a81d29e8e75 /Lib | |
parent | b2dca49ca3769cb60713f5c2b43e5d5bbdc1f9c7 (diff) | |
download | cpython-d72b9644a3e6eec83be48b1ebc2ec6ca776134d3.zip cpython-d72b9644a3e6eec83be48b1ebc2ec6ca776134d3.tar.gz cpython-d72b9644a3e6eec83be48b1ebc2ec6ca776134d3.tar.bz2 |
bpo-40947: getpath.c uses PyConfig.platlibdir (GH-20807)
Followup of bpo-40854, there is one remaining usage of PLATLIBDIR
which should be replaced by config->platlibdir.
test_sys checks that sys.platlibdir attribute exists and is a string.
Update Makefile: getpath.c and sysmodule.c no longer need PLATLIBDIR
macro, PyConfig.platlibdir member is used instead.
Co-authored-by: Sandro Mani <manisandro@gmail.com>
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_sys.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_sys.py b/Lib/test/test_sys.py index 2f93eaa..194128e 100644 --- a/Lib/test/test_sys.py +++ b/Lib/test/test_sys.py @@ -487,6 +487,7 @@ class SysModuleTest(unittest.TestCase): self.assertIsInstance(sys.platform, str) self.assertIsInstance(sys.prefix, str) self.assertIsInstance(sys.base_prefix, str) + self.assertIsInstance(sys.platlibdir, str) self.assertIsInstance(sys.version, str) vi = sys.version_info self.assertIsInstance(vi[:], tuple) |