Skip to content

Commit

Permalink
[py3] Fixed bad unicode test
Browse files Browse the repository at this point in the history
  • Loading branch information
claudep committed Aug 15, 2012
1 parent 0ab5702 commit 607665a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tests/regressiontests/model_regress/models.py
Expand Up @@ -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):
Expand Down

0 comments on commit 607665a

Please sign in to comment.