Skip to content

Commit a28da5f

Browse files
author
Andrey Bienkowski
committed
Fix test_editable_user_and_build_isolation
This test broke on my machine for some reason
1 parent eab077a commit a28da5f

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

setuptools/tests/test_easy_install.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -1148,4 +1148,7 @@ def test_editable_user_and_build_isolation(setup_context, monkeypatch, tmpdir):
11481148
# Should not install to sys.prefix
11491149
assert sys_prefix.listdir() == []
11501150
# Should install to user site
1151-
assert {f.basename for f in user_site.listdir()} == {'UNKNOWN.egg-link'}
1151+
installed = {f.basename for f in user_site.listdir()}
1152+
# sometimes easy-install.pth is created and sometimes not
1153+
installed = installed - {"easy-install.pth"}
1154+
assert installed == {'UNKNOWN.egg-link'}

0 commit comments

Comments
 (0)