Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

[py3] Fixed bad unicode test

  • Loading branch information...
commit 607665a396e52a4e788543496e3be7b47972bf54 1 parent 0ab5702
@claudep claudep authored
Showing with 2 additions and 3 deletions.
  1. +2 −3 tests/regressiontests/model_regress/models.py
View
5 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):
Please sign in to comment.
Something went wrong with that request. Please try again.