Skip to content

Commit 4eca9b9

Browse files
authored
Merge pull request #2322 from AndreySV/fix-test-with-false
test: use false instead of /usr/bin/false
2 parents 9410acb + 51964b3 commit 4eca9b9

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)