From fe41d1da98b77895d0885962ffa62baa6948360d Mon Sep 17 00:00:00 2001 From: milde Date: Mon, 4 Mar 2013 21:14:50 +0000 Subject: [PATCH] Fix test under Py3k. git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7622 929543f6-e4f2-0310-98a6-ba3bd3dd1d04 --- test/test_io.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/test_io.py b/test/test_io.py index 03b992c21..abaee6c45 100755 --- a/test/test_io.py +++ b/test/test_io.py @@ -125,12 +125,12 @@ print "hello world" # keep unicode instances as-is self.assertEqual(uniinput.decode(u'ja'), u'ja') # raise AssertionError if data is not an unicode string - self.assertRaises(AssertionError, uniinput.decode, bytes('ja')) + self.assertRaises(AssertionError, uniinput.decode, b('ja')) class OutputTests(unittest.TestCase): - bdata = bytes('\xfc') + bdata = b('\xfc') udata = u'\xfc' def setUp(self): -- 2.11.4.GIT