浏览代码

Fixed a python 3.2 syntax error and python 3 warning introduced by 054ce2aa02.

Simon Charette 12 年之前
父节点
当前提交
5938e7013e
共有 1 个文件被更改,包括 2 次插入2 次删除
  1. 2 2
      tests/admin_changelist/tests.py

+ 2 - 2
tests/admin_changelist/tests.py

@@ -1,4 +1,4 @@
-from __future__ import absolute_import
+from __future__ import absolute_import, unicode_literals
 
 import datetime
 
@@ -581,4 +581,4 @@ class AdminLogNodeTestCase(TestCase):
 
         # Rendering should be u'' since this templatetag just logs,
         # it doesn't render any string.
-        self.assertEquals(template.render(context), u'')
+        self.assertEqual(template.render(context), '')