summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArmin Ronacher <armin.ronacher@active-4.com>2016-01-13 23:02:21 +0100
committerArmin Ronacher <armin.ronacher@active-4.com>2016-01-13 23:02:21 +0100
commit425762c633815cabe7f89321593b7358bf1dba88 (patch)
tree5bd5df88aea9a1da76cef28185b2c55a038f4757
parent30be0a6f64d7a57976d54a1df21dc7da76bd081c (diff)
downloadmarkupsafe-425762c633815cabe7f89321593b7358bf1dba88.tar.gz
Fixed a broken test on python 3
-rw-r--r--markupsafe/tests.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/markupsafe/tests.py b/markupsafe/tests.py
index 62fb57d..b7aae4d 100644
--- a/markupsafe/tests.py
+++ b/markupsafe/tests.py
@@ -138,6 +138,8 @@ class MarkupTestCase(unittest.TestCase):
return 'some other value'
def __unicode__(self):
return u'строка'
+ if not PY2:
+ __str__ = __unicode__
assert Markup('{s}').format(s=Stringable()) == \
Markup(u'строка')