diff options
author | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2013-03-04 21:14:50 +0000 |
---|---|---|
committer | milde <milde@929543f6-e4f2-0310-98a6-ba3bd3dd1d04> | 2013-03-04 21:14:50 +0000 |
commit | fe41d1da98b77895d0885962ffa62baa6948360d (patch) | |
tree | 3084506eee24387e4e4786b7b6dd7ca84f3f84d4 | |
parent | 6150a8dfd9f99865e48098ee3ef7953a5d02ed7b (diff) | |
download | docutils-fe41d1da98b77895d0885962ffa62baa6948360d.tar.gz |
Fix test under Py3k.
git-svn-id: http://svn.code.sf.net/p/docutils/code/trunk/docutils@7622 929543f6-e4f2-0310-98a6-ba3bd3dd1d04
-rwxr-xr-x | test/test_io.py | 4 |
1 files 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): |