From: Georg Brandl Date: Wed, 16 Jul 2008 23:18:51 +0000 (+0000) Subject: Byte items *can* be chars in 2.6. X-Git-Tag: v2.6b2~10 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=0a34baf1fc10ffd61f4e9a8d053008dd57930fff;p=thirdparty%2FPython%2Fcpython.git Byte items *can* be chars in 2.6. --- diff --git a/Lib/test/test_bytes.py b/Lib/test/test_bytes.py index a33dcb5d3124..6604b1eacfde 100644 --- a/Lib/test/test_bytes.py +++ b/Lib/test/test_bytes.py @@ -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()])