From 4f066126d616d35aa8c0911a915ad64a09aaf16e Mon Sep 17 00:00:00 2001 From: Christian Heimes Date: Wed, 30 Jan 2008 15:02:52 +0000 Subject: Enabled fromhex('') test for bytes --- Lib/test/test_bytes.py | 4 +--- 1 file changed, 1 insertion(+), 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) -- cgit v0.12