diff --git a/tests/test_midi_tx.py b/tests/test_midi_tx.py index ff2f71ac..47915189 100644 --- a/tests/test_midi_tx.py +++ b/tests/test_midi_tx.py @@ -19,8 +19,9 @@ MAX_CYCLES = 15000000 def test_tx(capfd, config, build_midi): with open("dir.txt", "wt") as db: - import subprocess, shutil - output = subprocess.run("tree", capture_output=True, text=True) + import subprocess + output = subprocess.run("tree", capture_output=True, text=True, shell=True) + db.write(output.stdout) # Need tempdir as we use the same config files and this causes issues when using xdist with tempdir() as tmpdirname: