Commits

Anonymous committed 472e9d0

Allow test to run on Windows, thanks to François Perrad for the patch.

  • Participants
  • Parent commits 475f102

Comments (0)

Files changed (1)

 #!/usr/bin/python
 
+import os
 import subunit
 import unittest
 
-from subprocess import Popen,PIPE
-
 class PynieParrotTests(subunit.ExecTestCase):
 
     def __init__(self, methodName='runTest'):
-        self.command = './pynie'
+        if os.name == 'nt':
+            self.command = 'pynie'
+        else:
+            self.command = './pynie'
         subunit.ExecTestCase.__init__(self, methodName)
 
     def test_01_simplest(self):
         """Lib/test/bootstrap/simplest.py"""
-        
+
     def test_02_literals(self):
         """Lib/test/bootstrap/literals.py"""
 
 
     def test_list_comps(self):
         """Lib/test/bootstrap/listcomps.py"""
-    
+
 
 if __name__ == '__main__':
      unittest.main()