diff options
author | Last G <last_g@hackerdom.ru> | 2016-05-19 11:35:18 +0200 |
---|---|---|
committer | Last G <last_g@hackerdom.ru> | 2016-05-19 11:35:18 +0200 |
commit | 6437f524bd60e943be9415818f1554bfda56920f (patch) | |
tree | 59438a58be2e8bf5f70a4dce128d4958c66e9f5f /setuptools/tests/test_easy_install.py | |
parent | 41d0279e41eaa5bc948bd7d6b815212e8d99e1fc (diff) | |
download | external_python_setuptools-6437f524bd60e943be9415818f1554bfda56920f.tar.gz external_python_setuptools-6437f524bd60e943be9415818f1554bfda56920f.tar.bz2 external_python_setuptools-6437f524bd60e943be9415818f1554bfda56920f.zip |
Get site-packages dirs from site.py too
Diffstat (limited to 'setuptools/tests/test_easy_install.py')
-rw-r--r-- | setuptools/tests/test_easy_install.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py index 55b8b05a..b9f820d8 100644 --- a/setuptools/tests/test_easy_install.py +++ b/setuptools/tests/test_easy_install.py @@ -119,6 +119,10 @@ class TestEasyInstallTest: with pytest.raises(distutils.errors.DistutilsError): cmd.cant_write_to_target() + @mock.patch('site.getsitepackages', lambda: ['/setuptools/test/site-packages']) + def test_all_site_dirs(self): + assert '/setuptools/test/site-packages' in ei.get_site_dirs() + class TestPTHFileWriter: def test_add_from_cwd_site_sets_dirty(self): |