1
0
mirror of https://github.com/django/django.git synced 2024-12-31 21:46:05 +00:00

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:
Claude Paroz 2013-07-29 17:07:50 +02:00
parent fdd7a355bf
commit e4937b6dde

View File

@ -45,6 +45,7 @@ class AdminScriptTestCase(unittest.TestCase):
settings_file_path = os.path.join(test_dir, filename)
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')
exports = [
'DATABASES',