From e4937b6dde5c30f34c8a65960d7d48b5d7ade356 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Mon, 29 Jul 2013 17:07:50 +0200 Subject: [PATCH] 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. --- tests/admin_scripts/tests.py | 1 + 1 file changed, 1 insertion(+) 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',