Skip to content
Permalink
Browse files

fix PyQgsAppStartup test on windows

  • Loading branch information
jef-n committed Nov 18, 2014
1 parent dfbe8f3 commit f81c05934ce6ce199f60ea52a45d5f0506aa5185
Showing with 2 additions and 4 deletions.
  1. +2 −4 tests/src/python/test_qgsappstartup.py
@@ -60,8 +60,6 @@ def doTestStartup(self, option='', testDir='', testFile='',
os.mkdir(testDir)
myTestFile = os.path.join(testDir, testFile)

# print 'myTestFile: ', myTestFile

if os.path.exists(myTestFile):
os.remove(myTestFile)

@@ -71,7 +69,7 @@ def doTestStartup(self, option='', testDir='', testFile='',
# whether to enable GUI customization
customize = '' if customization else '--nocustomization'

# environnement variables = system variables + provided 'env'
# environment variables = system variables + provided 'env'
myenv = os.environ.copy()
if env is not None:
myenv.update(env)
@@ -141,7 +139,7 @@ def testPyQgisStartupEnvVar(self):
testfile = 'pyqgis_startup.txt'
testfilepath = os.path.join(self.TMP_DIR, testfile)
testcode = [
"f = open('{0}', 'w')\n".format(testfilepath),
"f = open('{0}', 'w')\n".format(testfilepath.replace('\\','\\\\')),
"f.write('This is a test')\n",
"f.close()\n"
]

0 comments on commit f81c059

Please sign in to comment.
You can’t perform that action at this time.