diff options
author | Ronald Oussoren <ronaldoussoren@mac.com> | 2010-08-01 09:02:50 (GMT) |
---|---|---|
committer | Ronald Oussoren <ronaldoussoren@mac.com> | 2010-08-01 09:02:50 (GMT) |
commit | bda4672b019dfca67c0d97ea7452d33decbd974c (patch) | |
tree | 74afb5d8c1c9db499ad9aefe00933c2eb98ea5b4 /Lib/test/test_site.py | |
parent | 794f5b3559f9ae9b4b54467144c8cd37253ca47c (diff) | |
download | cpython-bda4672b019dfca67c0d97ea7452d33decbd974c.zip cpython-bda4672b019dfca67c0d97ea7452d33decbd974c.tar.gz cpython-bda4672b019dfca67c0d97ea7452d33decbd974c.tar.bz2 |
Ensure that test_site actually passes with a framework build
Diffstat (limited to 'Lib/test/test_site.py')
-rw-r--r-- | Lib/test/test_site.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py index 5695cd7..37ec61a 100644 --- a/Lib/test/test_site.py +++ b/Lib/test/test_site.py @@ -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""" |