diff --git a/tests.py b/tests.py
index d3c020e5fddb10eda79e41c55c2b750e389cfded..814f73d35ddd7323b89affebd84fd3a2da6619e9 100644
--- a/tests.py
+++ b/tests.py
@@ -26,10 +26,13 @@ def test_os_chdir(tmp_path):
 
 
 def test_run_method(tmp_path):
+    run = mod.run
+
+    # test a command with options:
+    assert run(["date", "+%Y-%m-%d"]).returncode == 0
+    assert run("date +%Y-%m-%d", shell=True).returncode == 0
+
     with mod.os_chdir(str(tmp_path)):
-        run = mod.run
-        # test a command with options:
-        assert run(["date", "+%Y-%m-%d"], shell=True).returncode == 0
         # ensure single string command works
         assert run(("ls -l")).returncode == 0
         # test spaces are handled correctly: