From 61e737eb5ca196ebfff6e335c408622da6725534 Mon Sep 17 00:00:00 2001 From: Hans Fangohr <hans.fangohr@mpsd.mpg.de> Date: Wed, 31 May 2023 12:36:13 +0200 Subject: [PATCH] fix string-based test --- tests.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests.py b/tests.py index 814f73d..98a8e39 100644 --- a/tests.py +++ b/tests.py @@ -34,7 +34,7 @@ def test_run_method(tmp_path): with mod.os_chdir(str(tmp_path)): # ensure single string command works - assert run(("ls -l")).returncode == 0 + assert run(("ls -l"), shell=True).returncode == 0 # test spaces are handled correctly: assert run(["touch", "file1 file2"]).returncode == 0 assert os.path.exists("file1") -- GitLab