Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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.
  • Loading branch information...
commit e4937b6dde5c30f34c8a65960d7d48b5d7ade356 1 parent fdd7a35
@claudep claudep authored
Showing with 1 addition and 0 deletions.
  1. +1 −0  tests/admin_scripts/tests.py
View
1  tests/admin_scripts/tests.py
@@ -45,6 +45,7 @@ def write_settings(self, filename, apps=None, is_dir=False, sdict=None):
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',
Please sign in to comment.
Something went wrong with that request. Please try again.