Commits

akalias  committed 41858a3

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

  • Participants
  • Parent commits 0a0220c

Comments (0)

Files changed (1)

File async_sub.py

 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()