tester = os.path.join(os.path.dirname(os.path.abspath(me)),
"tf_inherit_check.py")
- # On Windows a spawn* /path/ with embedded spaces shouldn't be quoted,
- # but an arg with embedded spaces should be decorated with double
- # quotes on each end
- decorated = '"%s"' % sys.executable
- tester = '"%s"' % tester
- retval = os.spawnl(os.P_WAIT, sys.executable, decorated, tester, v, fd)
+ retval = os.spawnl(os.P_WAIT, sys.executable,
+ sys.executable, tester, v, fd)
self.failIf(retval < 0,
"child process caught fatal signal %d" % -retval)
self.failIf(retval > 0, "child process reports failure")