From a42c72b9ee4a377854ff306eab61d4df749abe86 Mon Sep 17 00:00:00 2001
From: Hans Fangohr <hans.fangohr@mpsd.mpg.de>
Date: Wed, 31 May 2023 12:37:16 +0200
Subject: [PATCH] fix test

(behaviour of run is like subprocess.run)
---
 tests.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/tests.py b/tests.py
index 98a8e39..5a6a56a 100644
--- a/tests.py
+++ b/tests.py
@@ -36,7 +36,7 @@ def test_run_method(tmp_path):
         # ensure single string command works
         assert run(("ls -l"), shell=True).returncode == 0
         # test spaces are handled correctly:
-        assert run(["touch", "file1 file2"]).returncode == 0
+        assert run(["touch", "file1", "file2"]).returncode == 0
         assert os.path.exists("file1")
         assert os.path.exists("file2")
         # test output is captured:
-- 
GitLab