[Python-3000-checkins] r60447 - python/branches/py3k/Lib/test/test_bytes.py
christian.heimes
python-3000-checkins at python.org
Wed Jan 30 16:02:52 CET 2008
Author: christian.heimes
Date: Wed Jan 30 16:02:52 2008
New Revision: 60447
Modified:
python/branches/py3k/Lib/test/test_bytes.py
Log:
Enabled fromhex('') test for bytes
Modified: python/branches/py3k/Lib/test/test_bytes.py
==============================================================================
--- python/branches/py3k/Lib/test/test_bytes.py (original)
+++ python/branches/py3k/Lib/test/test_bytes.py Wed Jan 30 16:02:52 2008
@@ -242,9 +242,7 @@
def test_fromhex(self):
self.assertRaises(TypeError, self.type2test.fromhex)
self.assertRaises(TypeError, self.type2test.fromhex, 1)
- # To be fixed
- if self.type2test != bytes:
- self.assertEquals(self.type2test.fromhex(''), self.type2test())
+ self.assertEquals(self.type2test.fromhex(''), self.type2test())
b = bytearray([0x1a, 0x2b, 0x30])
self.assertEquals(self.type2test.fromhex('1a2B30'), b)
self.assertEquals(self.type2test.fromhex(' 1A 2B 30 '), b)
More information about the Python-3000-checkins
mailing list