summaryrefslogtreecommitdiff
path: root/Lib
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2009-01-25 17:15:10 +0000
committerBenjamin Peterson <benjamin@python.org>2009-01-25 17:15:10 +0000
commit78821ddf8c8eeebf757d72c2989cc0accea155de (patch)
treec9ce0cdf40089bbc995de6138b237595b4cd51dd /Lib
parente52c31450dfbe649b559b3fa96630d348b838c19 (diff)
downloadcpython-git-78821ddf8c8eeebf757d72c2989cc0accea155de.tar.gz
fix building the core with --disable-unicode
I changed some bytearray methods to use strings instead of unicode like bytes_repr Also, bytearray.fromhex() can take strings as well as unicode
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_bytes.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/Lib/test/test_bytes.py b/Lib/test/test_bytes.py
index 8ac8898394..09b497bab0 100644
--- a/Lib/test/test_bytes.py
+++ b/Lib/test/test_bytes.py
@@ -250,7 +250,6 @@ class BaseBytesTest(unittest.TestCase):
self.assertEquals(self.type2test.fromhex(u'1a2B30'), b)
self.assertEquals(self.type2test.fromhex(u' 1A 2B 30 '), b)
self.assertEquals(self.type2test.fromhex(u'0000'), b'\0\0')
- self.assertRaises(TypeError, self.type2test.fromhex, b'1B')
self.assertRaises(ValueError, self.type2test.fromhex, u'a')
self.assertRaises(ValueError, self.type2test.fromhex, u'rt')
self.assertRaises(ValueError, self.type2test.fromhex, u'1a b cd')