Commit 9c4f8ecb authored by Jason R. Coombs's avatar Jason R. Coombs

getsitepackages may not be present

parent a048b0ab
......@@ -124,7 +124,7 @@ class TestEasyInstallTest:
site.getsitepackages.
"""
mock_gsp = lambda: ['/setuptools/test/site-packages']
monkeypatch.setattr(site, 'getsitepackages', mock_gsp)
monkeypatch.setattr(site, 'getsitepackages', mock_gsp, raising=False)
assert '/setuptools/test/site-packages' in ei.get_site_dirs()
def test_all_site_dirs_works_without_getsitepackages(self, monkeypatch):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment