From a636c4ff19b278801425aaf16a0db1d055be0fd7 Mon Sep 17 00:00:00 2001 From: Waylan Limberg Date: Thu, 28 Jul 2011 11:13:49 -0400 Subject: Skip the UnidoceDecodeError API test in Python 3.x as all input should be unicode anyway. --- tests/test_apis.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'tests') 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. """ -- cgit v1.2.3