Byte items *can* be chars in 2.6.

This commit is contained in:
Georg Brandl 2008-07-16 23:18:51 +00:00
parent 3238a3e329
commit 0a34baf1fc
1 changed files with 2 additions and 1 deletions

View 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()])