From 51964b3142d4d19f44705fde8e7e721233c53dd2 Mon Sep 17 00:00:00 2001 From: Andrey Skvortsov Date: Mon, 17 Oct 2022 17:30:42 +0300 Subject: [PATCH] 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 --- tests/unit/test_config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/unit/test_config.py b/tests/unit/test_config.py index e9482fb6f..32b9c9ef9 100644 --- a/tests/unit/test_config.py +++ b/tests/unit/test_config.py @@ -305,7 +305,7 @@ def test_data_from_helper(m_open, monkeypatch, tmp_path): @mock.patch("builtins.open") @pytest.mark.skipif(sys.platform.startswith("win"), reason="Not supported on Windows") def test_from_helper_subprocess_error_raises_error(m_open, monkeypatch): - # using /usr/bin/false here to force a non-zero return code + # using false here to force a non-zero return code fd = io.StringIO( dedent( """\ @@ -314,7 +314,7 @@ def test_from_helper_subprocess_error_raises_error(m_open, monkeypatch): [helper] url = https://helper.url - oauth_token = helper: /usr/bin/false + oauth_token = helper: false """ ) )