Browse files

[py3] Fixed test failures introduced in 3afb591.

  • Loading branch information...
apollo13 committed Aug 28, 2012
1 parent 3afb591 commit 9eafb6592e9ed27a59cb3cd9920c44cf230a6c65
Showing with 6 additions and 2 deletions.
  1. +6 −2 tests/regressiontests/admin_scripts/
@@ -1,15 +1,18 @@
+# -*- coding: utf-8 -*-
A series of tests to establish that the command-line managment tools work as
advertised - especially with regards to the handling of the DJANGO_SETTINGS_MODULE
and default files.
+from __future__ import unicode_literals
import os
import re
import shutil
import socket
import subprocess
import sys
+import codecs
from django import conf, bin, get_version
from django.conf import settings
@@ -1584,5 +1587,6 @@ def test_custom_project_template_with_non_ascii_templates(self):
self.addCleanup(shutil.rmtree, testproject_dir)
- self.assertEqual(open(os.path.join(testproject_dir, 'ticket-18091-non-ascii-template.txt')).read(),
- 'Some non-ASCII text for testing ticket #18091:\n\xc3\xbc\xc3\xa4\xc3\xb6 \xe2\x82\xac\n')
+ path = os.path.join(testproject_dir, 'ticket-18091-non-ascii-template.txt')
+ self.assertEqual(, 'r', 'utf-8').read(),
+ 'Some non-ASCII text for testing ticket #18091:\nüäö €\n')

0 comments on commit 9eafb65

Please sign in to comment.