From 7fbf400ded9158e46fe26ef9190436669117d373 Mon Sep 17 00:00:00 2001 From: Ed Date: Fri, 19 Apr 2024 12:03:26 +0100 Subject: [PATCH] Debug fix --- tests/test_midi_tx.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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: