mirror of https://github.com/python/cpython
Byte items *can* be chars in 2.6.
This commit is contained in:
parent
3238a3e329
commit
0a34baf1fc
|
@ -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()])
|
||||
|
|
Loading…
Reference in New Issue