Commits

Anonymous committed 41858a3

Fix for async_sub.py unittest, replaced python.exe with sys.executable

Comments (0)

Files changed (1)

 class AsyncTest(unittest.TestCase):
     def test_proc_in_time_or_kill(self):
         ret_code, response = proc_in_time_or_kill(
-            ['python.exe', '-c', 'while 1: pass'], time_out = 1
+            [sys.executable, '-c', 'while 1: pass'], time_out = 1
         )
         self.assert_( ret_code.startswith('"Process timed out') )
 
     if 1:
         unittest.main()
     else:
-        _example()
+        _example()