summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorClaude Paroz <claude@2xlibre.net>2013-07-29 17:07:50 +0200
committerClaude Paroz <claude@2xlibre.net>2013-07-29 17:10:23 +0200
commite4937b6dde5c30f34c8a65960d7d48b5d7ade356 (patch)
tree6027d966d95db6aa27dc8ddc3637cf57607ca380 /tests
parentfdd7a355bf053217d25b8d2189e37069c1304283 (diff)
downloaddjango-e4937b6dde5c30f34c8a65960d7d48b5d7ade356.tar.gz
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.
Diffstat (limited to 'tests')
-rw-r--r--tests/admin_scripts/tests.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/admin_scripts/tests.py b/tests/admin_scripts/tests.py
index 28f2dcb841..6e1f916996 100644
--- a/tests/admin_scripts/tests.py
+++ b/tests/admin_scripts/tests.py
@@ -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',