Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fix PyQgsAppStartup test on windows
  • Loading branch information
jef-n committed Nov 18, 2014
1 parent dfbe8f3 commit f81c059
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions tests/src/python/test_qgsappstartup.py
Expand Up @@ -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)

Expand All @@ -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)
Expand Down Expand Up @@ -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"
]
Expand Down

0 comments on commit f81c059

Please sign in to comment.