summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_bytes.py
diff options
context:
space:
mode:
authorChristian Heimes <christian@cheimes.de>2008-01-30 15:02:52 (GMT)
committerChristian Heimes <christian@cheimes.de>2008-01-30 15:02:52 (GMT)
commit4f066126d616d35aa8c0911a915ad64a09aaf16e (patch)
treea3f23f6cfcf9335bb353faa08731589b5ebfca8f /Lib/test/test_bytes.py
parent5f63d186574120f072613859e4b422e15213b2c6 (diff)
downloadcpython-4f066126d616d35aa8c0911a915ad64a09aaf16e.zip
cpython-4f066126d616d35aa8c0911a915ad64a09aaf16e.tar.gz
cpython-4f066126d616d35aa8c0911a915ad64a09aaf16e.tar.bz2
Enabled fromhex('') test for bytes
Diffstat (limited to 'Lib/test/test_bytes.py')
-rw-r--r--Lib/test/test_bytes.py4
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/test/test_bytes.py b/Lib/test/test_bytes.py
index 459e8f3..5f3580d 100644
--- a/Lib/test/test_bytes.py
+++ b/Lib/test/test_bytes.py
@@ -242,9 +242,7 @@ class BaseBytesTest(unittest.TestCase):
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)