mirror of
https://github.com/python/cpython.git
synced 2025-11-01 18:51:43 +00:00
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>
This commit is contained in:
parent
b2dca49ca3
commit
d72b9644a3
4 changed files with 23 additions and 13 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue