diff options
| author | Martin Vilcans <martin@librador.com> | 2019-02-21 20:26:47 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-02-21 20:26:47 +0100 |
| commit | c088581f5ed882554d1e27074411b2c874955010 (patch) | |
| tree | 0a354ecf213d5a75aac23c890ec92b148896553e /tests | |
| parent | d9eb1a980798ff54ac9cd81ff1821f78aa57156b (diff) | |
| parent | 69c11fb0aa1750225d1f9549474554bb1d3eb932 (diff) | |
Merge pull request #46 from jpyams/python3
Add Python 3 support
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/fdx_test.py | 2 | ||||
| -rw-r--r-- | tests/fountain_test.py | 2 | ||||
| -rw-r--r-- | tests/richstring_test.py | 3 |
3 files changed, 4 insertions, 3 deletions
diff --git a/tests/fdx_test.py b/tests/fdx_test.py index b6e2bc9..497f908 100644 --- a/tests/fdx_test.py +++ b/tests/fdx_test.py @@ -3,7 +3,7 @@ # http://www.opensource.org/licenses/mit-license.php from testcompat import TestCase -from StringIO import StringIO +from six import StringIO from screenplain.export.fdx import write_text from screenplain.richstring import plain, bold, italic diff --git a/tests/fountain_test.py b/tests/fountain_test.py index fff1e48..c31cc66 100644 --- a/tests/fountain_test.py +++ b/tests/fountain_test.py @@ -9,7 +9,7 @@ from screenplain.types import ( Slug, Action, Dialog, DualDialog, Transition, Section, PageBreak ) from screenplain.richstring import plain, italic, empty_string -from StringIO import StringIO +from six import StringIO def parse(lines): 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): |
