Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit51964b3

Browse files
AndreySVAndrey Skvortsov
authored and
Andrey Skvortsov
committed
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 parent9410acb commit51964b3

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
deftest_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)

[8]ページ先頭

©2009-2025 Movatter.jp