Skip to content
Permalink

Comparing changes

This is a direct comparison between two commits made in this repository or its related repositories. View the default comparison for this range or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: python-poetry/poetry
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 5dbd028a3a5c7193e4876854f749aa1d71f5c952
Choose a base ref
..
head repository: python-poetry/poetry
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 34662ba3a84d4fa27cf70f8051ba180f7c31d4ab
Choose a head ref
Showing with 3 additions and 1 deletion.
  1. +3 −1 tests/utils/test_env_site.py
4 changes: 3 additions & 1 deletion tests/utils/test_env_site.py
Original file line number Diff line number Diff line change
@@ -5,7 +5,9 @@
from poetry.utils.env import SitePackages


def test_env_site_simple(tmp_dir):
def test_env_site_simple(tmp_dir, mocker):
# emulate permission error when creating directory
mocker.patch("poetry.utils._compat.Path.mkdir", side_effect=OSError())
site_packages = SitePackages(Path("/non-existent"), fallbacks=[Path(tmp_dir)])
candidates = site_packages.make_candidates(Path("hello.txt"), writable_only=True)
hello = Path(tmp_dir) / "hello.txt"