~ruther/guix-local

ref: d772038084435fafbe43a35f71c7ea24b72428d8 guix-local/gnu/packages/patches/thefuck-test-environ.patch -rw-r--r-- 490 bytes
d7720380 — Cayetano Santos gnu: freecad: Update dependency on tbb. 2 months ago
                                                                                
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