Unverified Commit aad49d54 authored by Peder Bergebakken Sundt's avatar Peder Bergebakken Sundt Committed by GitHub
Browse files

python313Packages.virtualenv-clone: alleviate test failures (#404497)

parents 5d35e620 6661c544
Loading
Loading
Loading
Loading
+8 −0
Original line number Diff line number Diff line
@@ -25,6 +25,14 @@ buildPythonPackage rec {

    substituteInPlace tests/test_virtualenv_sys.py \
      --replace-fail "'virtualenv'" "'${virtualenv}/bin/virtualenv'"

    # PermissionError: [Errno 13] Permission denied: '/tmp/test_fixup_pth_file.pth'
    # Unable to reproduce.
    # Theory: this fixed path may collide with itself on darwin if this package is built for multiple python versions simultaneously
    substituteInPlace tests/test_fixup_scripts.py \
      --replace-fail \
        "pth = '/tmp/test_fixup_pth_file.pth'" \
        "pth = '$(mktemp -d)/test_fixup_pth_file.pth'"
  '';

  propagatedBuildInputs = [ virtualenv ];