From 607665a396e52a4e788543496e3be7b47972bf54 Mon Sep 17 00:00:00 2001 From: Claude Paroz Date: Wed, 15 Aug 2012 14:00:04 +0200 Subject: [PATCH] [py3] Fixed bad unicode test --- tests/regressiontests/model_regress/models.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/tests/regressiontests/model_regress/models.py b/tests/regressiontests/model_regress/models.py index 6c350d1b5d..82efb9c783 100644 --- a/tests/regressiontests/model_regress/models.py +++ b/tests/regressiontests/model_regress/models.py @@ -63,9 +63,8 @@ class BrokenUnicodeMethod(models.Model): name = models.CharField(max_length=7) def __str__(self): - # Intentionally broken (trying to insert a unicode value into a str - # object). - return 'Názov: %s' % self.name + # Intentionally broken (invalid start byte in byte string). + return b'Name\xff: %s'.decode() % self.name class NonAutoPK(models.Model):