diff options
author | Waylan Limberg <waylan@gmail.com> | 2011-07-28 11:13:49 -0400 |
---|---|---|
committer | Waylan Limberg <waylan@gmail.com> | 2011-07-28 11:13:49 -0400 |
commit | a636c4ff19b278801425aaf16a0db1d055be0fd7 (patch) | |
tree | 30736455f8afb10d8bf65c837c22aef061e65c86 /tests/test_apis.py | |
parent | fbc96ca158193c3e692fd5876480cf4927da151a (diff) | |
download | markdown-a636c4ff19b278801425aaf16a0db1d055be0fd7.tar.gz markdown-a636c4ff19b278801425aaf16a0db1d055be0fd7.tar.bz2 markdown-a636c4ff19b278801425aaf16a0db1d055be0fd7.zip |
Skip the UnidoceDecodeError API test in Python 3.x as all input should be unicode anyway.
Diffstat (limited to 'tests/test_apis.py')
-rw-r--r-- | tests/test_apis.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tests/test_apis.py b/tests/test_apis.py index c9e89ad..d34f2c0 100644 --- a/tests/test_apis.py +++ b/tests/test_apis.py @@ -227,8 +227,9 @@ class TestErrors(unittest.TestCase): def testNonUnicodeSource(self): """ Test falure on non-unicode source text. """ - source = "foo".encode('utf-16') - self.assertRaises(UnicodeDecodeError, markdown.markdown, source) + if sys.version_info < (3, 0): + source = "foo".encode('utf-16') + self.assertRaises(UnicodeDecodeError, markdown.markdown, source) def testBadOutputFormat(self): """ Test failure on bad output_format. """ |