Exemplo n.º 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)
Exemplo n.º 2
0
 def testPathConvertedForwardSlash ( self ) :
     tmpFile = supportModule.javaNameCompatibleTemporaryFile ( )
     filename = os.popen ( 'cygpath -w ' + tmpFile.name ).read ( ).strip ( ).replace ( '\\' , '/' )
     self.launchScriptTest ( filename , tmpFile )
Exemplo n.º 3
0
 def testPathUnconverted ( self ) :
     tmpFile = supportModule.javaNameCompatibleTemporaryFile ( )
     self.launchScriptTest ( tmpFile.name , tmpFile )
Exemplo n.º 4
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 )
Exemplo n.º 5
0
 def testPathConvertedForwardSlash(self):
     tmpFile = supportModule.javaNameCompatibleTemporaryFile()
     filename = os.popen('cygpath -w ' +
                         tmpFile.name).read().strip().replace('\\', '/')
     self.launchScriptTest(filename, tmpFile)
Exemplo n.º 6
0
 def testPathUnconverted(self):
     tmpFile = supportModule.javaNameCompatibleTemporaryFile()
     self.launchScriptTest(tmpFile.name, tmpFile)