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
f2c38543'>etc: Add committer script....Ricardo Wurmus 2020-05-28maint: Check whether Guile-Gcrypt is recent enough....Ludovic Courtès 2020-05-14etc: indent-code.el: Use the --quick option....Maxim Cournoyer 2020-04-23build: Don't build man pages when cross-compiling....Ludovic Courtès 2020-03-11build: Require Guile 2.2.3 or later....Ludovic Courtès 2020-01-17build: Allow builds with Guile 3.0....Ludovic Courtès 2019-11-09build: Warn about etc/indent-code.el when Emacs is absent....zimoun 2019-07-25maint: Switch to Guile-JSON 3.x....Ludovic Courtès 2019-05-06Add (guix lzlib)....Pierre Neidhardt 2019-04-17build: No longer substitute 'LIBGCRYPT'....Ludovic Courtès 2019-01-17configure: Disable installer build by default....Mathieu Othacehe 2019-01-17gnu: Add graphical installer support....Mathieu Othacehe 2019-01-09build: Require Guile 2.2....Ludovic Courtès 2018-12-02Make Guile-JSON a required dependency....Eric Bavier 2018-10-12build: Fine-tune the forbidden M4 patterns....Ludovic Courtès 2018-10-12build: Remove obsolete reference to 'GUIX_ASSERT_LIBGCRYPT_USABLE'....Ludovic Courtès 2018-09-04Switch to Guile-Gcrypt....Ludovic Courtès 2018-06-18build: Remove checks for 'nix-instantiate'....Ludovic Courtès 2018-06-14build: Require Guile-SQLite3....Ludovic Courtès 2018-06-01build: Check for Guile-SQLite3....Ludovic Courtès 2018-04-19gnu: doc: Allow documentation to be translated....Julien Lepiller 2018-02-26build: Require Guile >= 2.0.13....Ludovic Courtès 2018-02-07etc: Add SELinux policy for the daemon....Ricardo Wurmus 2018-01-23build: Expand ‘scripts/guix’ at Make time....Mathieu Lirzin 2018-01-16etc: Add completions for fish....ng0 2018-01-06build: Detect broken 'equal?' in Guile 2.2.1....Ludovic Courtès