Index: regressiontests/model_regress/models.py
===================================================================
--- regressiontests/model_regress/models.py     (revision 11174)
+++ regressiontests/model_regress/models.py     (working copy)
@@ -1,5 +1,6 @@
 # coding: utf-8
 import datetime
+import sys

 from django.conf import settings
 from django.db import models
@@ -141,13 +142,17 @@
 >>> w
 <Worker: Full-time>

+"""}
+
+if sys.getdefaultencoding() == 'ascii':
+    __test__["encoding-tests"] = """
 # Models with broken unicode methods should still have a printable repr
 >>> b = BrokenUnicodeMethod(name="Jerry")
 >>> b.save()
 >>> BrokenUnicodeMethod.objects.all()
 [<BrokenUnicodeMethod: [Bad Unicode data]>]

-"""}
+"""

 if settings.DATABASE_ENGINE not in ("mysql", "oracle"):
     __test__["timezone-tests"] = """
