From aed60df121afbccfe8dc70dbb341541211c59474 Mon Sep 17 00:00:00 2001 From: Oliverpool Date: Thu, 29 Oct 2015 19:14:51 +0100 Subject: [PATCH] [debug]stderr to stdout --- test/test_compilation/test_compilation.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/test/test_compilation/test_compilation.py b/test/test_compilation/test_compilation.py index 241dc73b..ceaf4d01 100644 --- a/test/test_compilation/test_compilation.py +++ b/test/test_compilation/test_compilation.py @@ -118,7 +118,8 @@ class FileTest(unittest.TestCase, metaclass=dynamic.DynamicTest): print("### empty module") try: - emptymod = subprocess.check_output([sys.executable, "-m", 'patacrep.songbook', 'test.sb']) + emptymod = subprocess.check_output([sys.executable, "-m", 'patacrep.songbook', 'empty.sb'], + stderr=subprocess.STDOUT) print(emptymod) except subprocess.CalledProcessError as error: print(error.output) @@ -126,7 +127,8 @@ class FileTest(unittest.TestCase, metaclass=dynamic.DynamicTest): print("### cwd module") try: emptymod = subprocess.check_output( - [sys.executable, "-m", 'patacrep.songbook', 'test.sb'], + [sys.executable, "-m", 'patacrep.songbook', 'cwd.sb'], + stderr=subprocess.STDOUT, cwd=os.path.dirname(songbook) ) print(emptymod)