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...
claudep committed Jul 29, 2013
1 parent fdd7a35 commit e4937b6dde5c30f34c8a65960d7d48b5d7ade356
Showing with 1 addition and 0 deletions.
  1. +1 −0 tests/admin_scripts/
@@ -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 = [

0 comments on commit e4937b6

Please sign in to comment.