[Erp5-report] r33176 luke - /erp5/trunk/buildout/tests/assertSoftware.py

nobody at svn.erp5.org nobody at svn.erp5.org
Mon Mar 1 13:45:43 CET 2010


Author: luke
Date: Mon Mar  1 13:45:40 2010
New Revision: 33176

URL: http://svn.erp5.org?rev=33176&view=rev
Log:
 - subprocess.call will use the lowest possible level to execute binary (thanks jm)

Modified:
    erp5/trunk/buildout/tests/assertSoftware.py

Modified: erp5/trunk/buildout/tests/assertSoftware.py
URL: http://svn.erp5.org/erp5/trunk/buildout/tests/assertSoftware.py?rev=33176&r1=33175&r2=33176&view=diff
==============================================================================
--- erp5/trunk/buildout/tests/assertSoftware.py [utf8] (original)
+++ erp5/trunk/buildout/tests/assertSoftware.py [utf8] Mon Mar  1 13:45:40 2010
@@ -1,5 +1,5 @@
 import unittest
-import sys, os, tempfile, stat
+import sys, os, tempfile, stat, subprocess
 
 def createCleanList(s):
   return sorted([q.strip() for q in s.split() if len(q.strip()) > 0])
@@ -20,7 +20,7 @@
       f.close()
       f_stat = os.stat(name)
       os.chmod(name, f_stat.st_mode | stat.S_IXUSR)
-      self.assertEqual(0, os.system(name))
+      self.assertEqual(0, subprocess.call([name]))
     finally:
       os.unlink(name)
 




More information about the Erp5-report mailing list