Commit 2d8b10d7 authored by Łukasz Nowak's avatar Łukasz Nowak

- assure that python script was really run and produced good result


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@33194 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 78271ebb
...@@ -20,7 +20,9 @@ print sys.version_info[:2] ...@@ -20,7 +20,9 @@ print sys.version_info[:2]
f.close() f.close()
f_stat = os.stat(name) f_stat = os.stat(name)
os.chmod(name, f_stat.st_mode | stat.S_IXUSR) os.chmod(name, f_stat.st_mode | stat.S_IXUSR)
self.assertEqual(0, subprocess.call([name])) result = ''.join(subprocess.Popen([name], stdout=subprocess.PIPE)\
.stdout.readlines()).strip()
self.assertEqual('(2, 4)', result)
finally: finally:
os.unlink(name) 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