]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Byte items *can* be chars in 2.6.
authorGeorg Brandl <georg@python.org>
Wed, 16 Jul 2008 23:18:51 +0000 (23:18 +0000)
committerGeorg Brandl <georg@python.org>
Wed, 16 Jul 2008 23:18:51 +0000 (23:18 +0000)
Lib/test/test_bytes.py

index a33dcb5d3124939a5f27b1e5d3f2fc77ec5ab6ac..6604b1eacfde30ec6edc011fed4a10bca7dd41c5 100644 (file)
@@ -78,7 +78,8 @@ class BaseBytesTest(unittest.TestCase):
         self.assertRaises(TypeError, self.type2test, 0.0)
         class C:
             pass
-        self.assertRaises(TypeError, self.type2test, ["0"])
+        # allowed in 2.6
+        #self.assertRaises(TypeError, self.type2test, ["0"])
         self.assertRaises(TypeError, self.type2test, [0.0])
         self.assertRaises(TypeError, self.type2test, [None])
         self.assertRaises(TypeError, self.type2test, [C()])