Commits

milde  committed 3618c41

Fix test under Py3k.

  • Participants
  • Parent commits a2b9362

Comments (0)

Files changed (1)

File docutils/test/test_io.py

         # 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):