tests: don't use print() to create wcs config files (py3)

This commit is contained in:
Frédéric Péters 2018-07-26 13:29:35 +02:00
parent 96ac10646a
commit 9751386861
1 changed files with 4 additions and 4 deletions

View File

@ -182,15 +182,15 @@ combo = combo
fd.close()
with open(os.path.join(WCS_DIR, 'wcs.cfg'), 'w') as fd:
print >> fd, '''[main]
app_dir = %s''' % WCS_DIR
fd.write('''[main]
app_dir = %s\n''' % WCS_DIR)
with open(os.path.join(WCS_DIR, 'local_settings.py'), 'w') as fd:
print >> fd, '''
fd.write('''
WCS_LEGACY_CONFIG_FILE = '%s/wcs.cfg'
THEMES_DIRECTORY = '/'
ALLOWED_HOSTS = ['127.0.0.1', '127.0.0.2']
''' % WCS_DIR
''' % WCS_DIR)
WCS_PID = os.fork()
if not WCS_PID: