Ticket #11420: patch-11420.diff
File patch-11420.diff, 860 bytes (added by , 15 years ago) |
---|
-
regressiontests/model_regress/models.py
1 1 # coding: utf-8 2 2 import datetime 3 import sys 3 4 4 5 from django.conf import settings 5 6 from django.db import models … … 141 142 >>> w 142 143 <Worker: Full-time> 143 144 145 """} 146 147 if sys.getdefaultencoding() == 'ascii': 148 __test__["encoding-tests"] = """ 144 149 # Models with broken unicode methods should still have a printable repr 145 150 >>> b = BrokenUnicodeMethod(name="Jerry") 146 151 >>> b.save() 147 152 >>> BrokenUnicodeMethod.objects.all() 148 153 [<BrokenUnicodeMethod: [Bad Unicode data]>] 149 154 150 """ }155 """ 151 156 152 157 if settings.DATABASE_ENGINE not in ("mysql", "oracle"): 153 158 __test__["timezone-tests"] = """