aboutsummary
aboutsummaryrefslogtreecommitdiff
path: root/gnu/packages/patches/thefuck-test-environ.patch
blob: 54194d8928b83f37f23a0146236e627c3f4e3a1a (about) (plain)
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
(title (en "Linux-libre kernel updated to 5.17"))
+ (body
+ (en "The default version of the linux-libre kernel has been
+ updated to the 5.17 release series.")))
+
(entry (commit "c42b7baf13c7633b4512e94da7445299c57b247d")
(title
(en "New @option{--export-manifest} option for @command{guix shell}")