Skip to content

Commit

Permalink
👹 Feed the hobgoblins (delint).
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed May 19, 2023
1 parent 0294954 commit 89e68d7
Showing 1 changed file with 14 additions and 3 deletions.
17 changes: 14 additions & 3 deletions setuptools/tests/test_easy_install.py
Original file line number Diff line number Diff line change
Expand Up @@ -1381,9 +1381,20 @@ def test_editable_user_and_build_isolation(setup_context, monkeypatch, tmp_path)

# Patching $HOME for 2 reasons:
# 1. setuptools/command/easy_install.py:create_home_path
# tries creating directories in $HOME
# given `self.config_vars['DESTDIRS'] = "/home/user/.pyenv/versions/3.9.10 /home/user/.pyenv/versions/3.9.10/lib /home/user/.pyenv/versions/3.9.10/lib/python3.9 /home/user/.pyenv/versions/3.9.10/lib/python3.9/lib-dynload"`` # noqa: E501
# it will `makedirs("/home/user/.pyenv/versions/3.9.10 /home/user/.pyenv/versions/3.9.10/lib /home/user/.pyenv/versions/3.9.10/lib/python3.9 /home/user/.pyenv/versions/3.9.10/lib/python3.9/lib-dynload")`` # noqa: E501
# tries creating directories in $HOME.
# Given::
# self.config_vars['DESTDIRS'] = (
# "/home/user/.pyenv/versions/3.9.10 "
# "/home/user/.pyenv/versions/3.9.10/lib "
# "/home/user/.pyenv/versions/3.9.10/lib/python3.9 "
# "/home/user/.pyenv/versions/3.9.10/lib/python3.9/lib-dynload")
# `create_home_path` will::
# makedirs(
# "/home/user/.pyenv/versions/3.9.10 "
# "/home/user/.pyenv/versions/3.9.10/lib "
# "/home/user/.pyenv/versions/3.9.10/lib/python3.9 "
# "/home/user/.pyenv/versions/3.9.10/lib/python3.9/lib-dynload")
#
# 2. We are going to force `site` to update site.USER_BASE and site.USER_SITE
# To point inside our new home
monkeypatch.setenv('HOME', str(tmp_path / '.home'))
Expand Down

0 comments on commit 89e68d7

Please sign in to comment.