Beispiel #1
0
 def testLaunchingScript(self):
     #  There is a weird problem with using filenames on MSYS, assume the same is true for Windwoes.
     tmpFile = file(
         'flobadob', 'w+'
     ) if supportModule.platform == 'win32' else supportModule.javaNameCompatibleTemporaryFile(
     )
     self.launchScriptTest(tmpFile.name, tmpFile)
     if supportModule.platform == 'win32': os.remove(tmpFile.name)
 def testPathConvertedForwardSlash ( self ) :
     tmpFile = supportModule.javaNameCompatibleTemporaryFile ( )
     filename = os.popen ( 'cygpath -w ' + tmpFile.name ).read ( ).strip ( ).replace ( '\\' , '/' )
     self.launchScriptTest ( filename , tmpFile )
 def testPathUnconverted ( self ) :
     tmpFile = supportModule.javaNameCompatibleTemporaryFile ( )
     self.launchScriptTest ( tmpFile.name , tmpFile )
 def testLaunchingScript ( self ) :
     #  There is a weird problem with using filenames on MSYS, assume the same is true for Windwoes.
     tmpFile = file ( 'flobadob' , 'w+' ) if supportModule.platform == 'win32' else supportModule.javaNameCompatibleTemporaryFile ( )
     self.launchScriptTest ( tmpFile.name , tmpFile )
     if supportModule.platform == 'win32' : os.remove ( tmpFile.name )
Beispiel #5
0
 def testPathConvertedForwardSlash(self):
     tmpFile = supportModule.javaNameCompatibleTemporaryFile()
     filename = os.popen('cygpath -w ' +
                         tmpFile.name).read().strip().replace('\\', '/')
     self.launchScriptTest(filename, tmpFile)
Beispiel #6
0
 def testPathUnconverted(self):
     tmpFile = supportModule.javaNameCompatibleTemporaryFile()
     self.launchScriptTest(tmpFile.name, tmpFile)