Commit 8f459cee authored by Łukasz Nowak's avatar Łukasz Nowak

- subprocess.call will use the lowest possible level to execute binary (thanks jm)


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33176 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 507c82ed
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 @@ print sys.version_info[:2]
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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment