summaryrefslogtreecommitdiff
path: root/tests/regressiontests
diff options
context:
space:
mode:
authorSimon Meers <simon@simonmeers.com>2012-08-22 11:48:47 +1000
committerSimon Meers <simon@simonmeers.com>2012-08-22 11:48:47 +1000
commitdfe63a52effab2c8b5f72a6aceb8646f03d490bb (patch)
tree2eca3c56d76255b46b7a7ebf2cea044c4f51bc69 /tests/regressiontests
parent13d47c3f338e1e9a5da943b97b5334c0523d2e2c (diff)
Revert "Fixed #18063 -- Avoid unicode in Model.__repr__ in python 2"
This reverts commit 3fce0d2a9162cf6e749a6de0b18890dea8955e89.
Diffstat (limited to 'tests/regressiontests')
-rw-r--r--tests/regressiontests/model_regress/tests.py10
1 files changed, 0 insertions, 10 deletions
diff --git a/tests/regressiontests/model_regress/tests.py b/tests/regressiontests/model_regress/tests.py
index 6a03b861e4..6a45a83052 100644
--- a/tests/regressiontests/model_regress/tests.py
+++ b/tests/regressiontests/model_regress/tests.py
@@ -1,5 +1,3 @@
-# coding: utf-8
-
from __future__ import absolute_import, unicode_literals
import datetime
@@ -148,14 +146,6 @@ class ModelTests(TestCase):
b = BrokenUnicodeMethod.objects.create(name="Jerry")
self.assertEqual(repr(b), "<BrokenUnicodeMethod: [Bad Unicode data]>")
- def test_no_unicode_in_repr(self):
- a = Article.objects.create(
- headline="Watch for umlauts: üöä", pub_date=datetime.datetime.now())
- if six.PY3:
- self.assertEqual(repr(a), '<Article: Watch for umlauts: üöä>')
- else:
- self.assertEqual(repr(a), '<Article: Watch for umlauts: ???>')
-
@skipUnlessDBFeature("supports_timezones")
def test_timezones(self):
# Saving an updating with timezone-aware datetime Python objects.