diff options
author | Georg Brandl <georg@python.org> | 2008-07-16 23:18:51 +0000 |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2008-07-16 23:18:51 +0000 |
commit | c2ac0be014a7c622050bc941c3e0b862c0adb6ae (patch) | |
tree | 024e14d78d545fdff79d95ff7f1e50098de0deb0 | |
parent | fe0b2563046a69b69329b7e2a054137dd3b48f33 (diff) | |
download | cpython-c2ac0be014a7c622050bc941c3e0b862c0adb6ae.tar.gz |
Byte items *can* be chars in 2.6.
-rw-r--r-- | Lib/test/test_bytes.py | 3 |
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()]) |