diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2014-06-12 23:41:30 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2014-06-12 23:41:30 (GMT) |
commit | 9e82b17e9db4406efb6d8940ff11cfd4d9a8a23d (patch) | |
tree | 9d9000817eb0ef04771454075dbfb2be53e1db5a /Lib/test/test_site.py | |
parent | b6cf631f9ce6c3dc591284474f9121195aa7e6b6 (diff) | |
download | cpython-9e82b17e9db4406efb6d8940ff11cfd4d9a8a23d.zip cpython-9e82b17e9db4406efb6d8940ff11cfd4d9a8a23d.tar.gz cpython-9e82b17e9db4406efb6d8940ff11cfd4d9a8a23d.tar.bz2 |
Issue #21711: support for "site-python" directories has now been removed from the site module (it was deprecated in 3.4).
Diffstat (limited to 'Lib/test/test_site.py')
-rw-r--r-- | Lib/test/test_site.py | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Lib/test/test_site.py b/Lib/test/test_site.py index 8325222..c2f37f8 100644 --- a/Lib/test/test_site.py +++ b/Lib/test/test_site.py @@ -235,20 +235,18 @@ class HelperFunctionsTests(unittest.TestCase): # OS X framework builds site.PREFIXES = ['Python.framework'] dirs = site.getsitepackages() - self.assertEqual(len(dirs), 3) + self.assertEqual(len(dirs), 2) wanted = os.path.join('/Library', sysconfig.get_config_var("PYTHONFRAMEWORK"), sys.version[:3], 'site-packages') - self.assertEqual(dirs[2], wanted) + self.assertEqual(dirs[1], wanted) elif os.sep == '/': # OS X non-framwework builds, Linux, FreeBSD, etc - self.assertEqual(len(dirs), 2) + self.assertEqual(len(dirs), 1) wanted = os.path.join('xoxo', 'lib', 'python' + sys.version[:3], 'site-packages') self.assertEqual(dirs[0], wanted) - wanted = os.path.join('xoxo', 'lib', 'site-python') - self.assertEqual(dirs[1], wanted) else: # other platforms self.assertEqual(len(dirs), 2) |