tests: don't use print() to create wcs config files (py3)
This commit is contained in:
parent
96ac10646a
commit
9751386861
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue