mirror of
https://github.com/python/cpython.git
synced 2025-08-29 21:25:01 +00:00
Ensure that test_site actually passes with a framework build
This commit is contained in:
parent
794f5b3559
commit
bda4672b01
3 changed files with 4 additions and 7 deletions
|
@ -185,13 +185,10 @@ class HelperFunctionsTests(unittest.TestCase):
|
|||
sysconfig.get_config_var("PYTHONFRAMEWORK")):
|
||||
site.PREFIXES = ['Python.framework']
|
||||
dirs = site.getsitepackages()
|
||||
self.assertEqual(len(dirs), 4)
|
||||
wanted = os.path.join('~', 'Library', 'Python',
|
||||
sys.version[:3], 'site-packages')
|
||||
self.assertEquals(dirs[2], os.path.expanduser(wanted))
|
||||
self.assertEqual(len(dirs), 3)
|
||||
wanted = os.path.join('/Library', 'Python', sys.version[:3],
|
||||
'site-packages')
|
||||
self.assertEquals(dirs[3], wanted)
|
||||
self.assertEquals(dirs[2], wanted)
|
||||
|
||||
class PthFile(object):
|
||||
"""Helper class for handling testing of .pth files"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue