Add utf-8 preamble to admin_scripts temp settings file
As some settings are copied from current user settings, we cannot be sure the characters are pure ascii.
This commit is contained in:
parent
fdd7a355bf
commit
e4937b6dde
|
@ -45,6 +45,7 @@ class AdminScriptTestCase(unittest.TestCase):
|
||||||
settings_file_path = os.path.join(test_dir, filename)
|
settings_file_path = os.path.join(test_dir, filename)
|
||||||
|
|
||||||
with open(settings_file_path, 'w') as settings_file:
|
with open(settings_file_path, 'w') as settings_file:
|
||||||
|
settings_file.write('# -*- coding: utf-8 -*\n')
|
||||||
settings_file.write('# Settings file automatically generated by admin_scripts test case\n')
|
settings_file.write('# Settings file automatically generated by admin_scripts test case\n')
|
||||||
exports = [
|
exports = [
|
||||||
'DATABASES',
|
'DATABASES',
|
||||||
|
|
Loading…
Reference in New Issue