From 1c21494114124e8ccd810c5bcd77da9b67a572b1 2012-03-21 23:55:40 From: slojo404 Date: 2012-03-21 23:55:40 Subject: [PATCH] switching to Popen to be python 2.6 friendly --- diff --git a/tests/test_rst2ipynb.py b/tests/test_rst2ipynb.py index 65a0b4f..5cd5d0b 100644 --- a/tests/test_rst2ipynb.py +++ b/tests/test_rst2ipynb.py @@ -22,5 +22,7 @@ def clean_dir(): def test_command_line(): with open(ref_ipynb_fname, 'rb') as f: ref_output = f.read() - output = subprocess.check_output(['./rst2ipynb.py', test_rst_fname]) + proc = subprocess.Popen(['./rst2ipynb.py', test_rst_fname], + stdout=subprocess.PIPE) + output = proc.communicate()[0] nt.assert_equal(ref_output, output)