unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
blob 54194d8928b83f37f23a0146236e627c3f4e3a1a 490 bytes (raw)
name: patches/thefuck-test-environ.patch 	 # note: path name is non-authoritative(*)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
 
Retain environment setting of "HOME" for tests that need os.path.expanduser()
to return a readable directory in the build chroot.

--- thefuck-3.25/tests/conftest.py
+++ thefuck-3.25/tests/conftest.py
@@ -64,6 +64,7 @@ def set_shell(monkeypatch):
 
 @pytest.fixture(autouse=True)
 def os_environ(monkeypatch):
-    env = {'PATH': os.environ['PATH']}
+    env = {'PATH': os.environ['PATH'],
+           'HOME': os.environ['HOME']}
     monkeypatch.setattr('os.environ', env)
     return env

debug log:

solving 54194d8928b83f37f23a0146236e627c3f4e3a1a ...
found 54194d8928b83f37f23a0146236e627c3f4e3a1a in https://git.savannah.gnu.org/cgit/guix.git

(*) Git path names are given by the tree(s) the blob belongs to.
    Blobs themselves have no identifier aside from the hash of its contents.^

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/guix.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).