[python-hdf5storage] 149/152: Fixed bug where subprocess.check_output is not available on Python 2.6.

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Feb 29 08:24:43 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to annotated tag 0.1
in repository python-hdf5storage.

commit 0a74e010381a6306142bbc3cac0c9453901d3601
Author: Freja Nordsiek <fnordsie at gmail.com>
Date:   Sun Feb 16 04:45:03 2014 -0500

    Fixed bug where subprocess.check_output is not available on Python 2.6.
---
 tests/test_matlab_compatibility.py | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/tests/test_matlab_compatibility.py b/tests/test_matlab_compatibility.py
index da6afdd..900eb5c 100644
--- a/tests/test_matlab_compatibility.py
+++ b/tests/test_matlab_compatibility.py
@@ -54,15 +54,15 @@ python_v7p3 = dict()
 def setup_module():
     teardown_module()
     matlab_command = "run('" + script_names[0] + "')"
-    subprocess.check_output(['matlab', '-nosplash', '-nodesktop',
-                            '-nojvm', '-r', matlab_command])
+    subprocess.check_call(['matlab', '-nosplash', '-nodesktop',
+                          '-nojvm', '-r', matlab_command])
     scipy.io.loadmat(file_name=mat_files[1], mdict=types_v7)
     hdf5storage.loadmat(file_name=mat_files[0], mdict=types_v7p3)
 
     hdf5storage.savemat(file_name=mat_files[2], mdict=types_v7p3)
     matlab_command = "run('" + script_names[1] + "')"
-    subprocess.check_output(['matlab', '-nosplash', '-nodesktop',
-                            '-nojvm', '-r', matlab_command])
+    subprocess.check_call(['matlab', '-nosplash', '-nodesktop',
+                          '-nojvm', '-r', matlab_command])
     scipy.io.loadmat(file_name=mat_files[3], mdict=python_v7)
     hdf5storage.loadmat(file_name=mat_files[2], mdict=python_v7p3)
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-hdf5storage.git



More information about the debian-science-commits mailing list