10000 test: use false instead of /usr/bin/false · python-gitlab/python-gitlab@51964b3 · GitHub
[go: up one dir, main page]

Skip to content

Commit 51964b3

Browse files
AndreySVAndrey Skvortsov
authored andcommitted
test: use false instead of /usr/bin/false
On Debian systems false is located at /bin/false (coreutils package). This fixes unit test failure on Debian system: FileNotFoundError: [Errno 2] No such file or directory: '/usr/bin/false' /usr/lib/python3.10/subprocess.py:1845: FileNotFoundError
1 parent 9410acb commit 51964b3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/unit/test_config.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -305,7 +305,7 @@ def test_data_from_helper(m_open, monkeypatch, tmp_path):
305305
@mock.patch("builtins.open")
306306
@pytest.mark.skipif(sys.platform.startswith("win"), reason="Not supported on Windows")
307307
def test_from_helper_subprocess_error_raises_error(m_open, monkeypatch):
308-
# using /usr/bin/false here to force a non-zero return code
308+
# using false here to force a non-zero return code
309309
fd = io.StringIO(
310310
dedent(
311311
"""\
@@ -314,7 +314,7 @@ def test_from_helper_subprocess_error_raises_error(m_open, monkeypatch):
314314
315315
[helper]
316316
url = https://helper.url
317-
oauth_token = helper: /usr/bin/false
317+
oauth_token = helper: false
318318
"""
319319
)
320320
)

0 commit comments

Comments
 (0)
0