diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2018-08-21 09:11:05 -0400 |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2018-08-21 09:11:05 -0400 |
commit | 5c84682f385fc326b2fe4285041f0aa666e3da01 (patch) | |
tree | ebd70114ecd45a52fd594bceda19e9c91d68e41e /setuptools/tests/test_easy_install.py | |
parent | 6498a7e3544e25183854b1b44d77c2e650d83dbb (diff) | |
download | external_python_setuptools-5c84682f385fc326b2fe4285041f0aa666e3da01.tar.gz external_python_setuptools-5c84682f385fc326b2fe4285041f0aa666e3da01.tar.bz2 external_python_setuptools-5c84682f385fc326b2fe4285041f0aa666e3da01.zip |
Delint
Diffstat (limited to 'setuptools/tests/test_easy_install.py')
-rw-r--r-- | setuptools/tests/test_easy_install.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/setuptools/tests/test_easy_install.py b/setuptools/tests/test_easy_install.py index 80a65497..872f97c2 100644 --- a/setuptools/tests/test_easy_install.py +++ b/setuptools/tests/test_easy_install.py @@ -126,7 +126,9 @@ class TestEasyInstallTest: site.getsitepackages. """ path = normalize_path('/setuptools/test/site-packages') - mock_gsp = lambda: [path] + + def mock_gsp(): + return [path] monkeypatch.setattr(site, 'getsitepackages', mock_gsp, raising=False) assert path in ei.get_site_dirs() |