##// END OF EJS Templates
switching to Popen to be python 2.6 friendly
slojo404 -
Show More
@@ -22,5 +22,7 b' def clean_dir():'
22 def test_command_line():
22 def test_command_line():
23 with open(ref_ipynb_fname, 'rb') as f:
23 with open(ref_ipynb_fname, 'rb') as f:
24 ref_output = f.read()
24 ref_output = f.read()
25 output = subprocess.check_output(['./rst2ipynb.py', test_rst_fname])
25 proc = subprocess.Popen(['./rst2ipynb.py', test_rst_fname],
26 stdout=subprocess.PIPE)
27 output = proc.communicate()[0]
26 nt.assert_equal(ref_output, output)
28 nt.assert_equal(ref_output, output)
General Comments 0
You need to be logged in to leave comments. Login now