aboutsummaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorMartin Vilcans <martin@librador.com>2013-08-13 20:21:44 +0200
committerMartin Vilcans <martin@librador.com>2013-08-13 20:34:00 +0200
commitcc0a0892fd328ba35cecba0a470f8b0597c4a63e (patch)
treeae013b97a92651149a75dc8b1ed09286bf18cb99 /tests
parentb80d1b73506ea8e0fe4b482e999b5be3926f2ecd (diff)
downloadscreenplain-cc0a0892fd328ba35cecba0a470f8b0597c4a63e.tar.gz
Use six.text_type in richstring_test
Diffstat (limited to 'tests')
-rw-r--r--tests/richstring_test.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/richstring_test.py b/tests/richstring_test.py
index f2bed5e..ee42087 100644
--- a/tests/richstring_test.py
+++ b/tests/richstring_test.py
@@ -3,6 +3,7 @@
# http://www.opensource.org/licenses/mit-license.php
from testcompat import TestCase
+import six
from screenplain.richstring import (
RichString, Segment,
Bold, Italic,
@@ -38,7 +39,7 @@ class RichStringOperatorTests(TestCase):
s = bold('Hello') + plain(' there ') + bold('folks')
self.assertEquals(
u'Hello there folks',
- unicode(s)
+ six.text_type(s)
)
def test_eq(self):