summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGeorg Brandl <georg@python.org>2008-07-16 23:18:51 +0000
committerGeorg Brandl <georg@python.org>2008-07-16 23:18:51 +0000
commitc2ac0be014a7c622050bc941c3e0b862c0adb6ae (patch)
tree024e14d78d545fdff79d95ff7f1e50098de0deb0
parentfe0b2563046a69b69329b7e2a054137dd3b48f33 (diff)
downloadcpython-c2ac0be014a7c622050bc941c3e0b862c0adb6ae.tar.gz
Byte items *can* be chars in 2.6.
-rw-r--r--Lib/test/test_bytes.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_bytes.py b/Lib/test/test_bytes.py
index a33dcb5d31..6604b1eacf 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()])