[Python-checkins] r65046 - python/trunk/Lib/test/test_bytes.py

georg.brandl python-checkins at python.org
Thu Jul 17 01:18:52 CEST 2008


Author: georg.brandl
Date: Thu Jul 17 01:18:51 2008
New Revision: 65046

Log:
Byte items *can* be chars in 2.6.


Modified:
   python/trunk/Lib/test/test_bytes.py

Modified: python/trunk/Lib/test/test_bytes.py
==============================================================================
--- python/trunk/Lib/test/test_bytes.py	(original)
+++ python/trunk/Lib/test/test_bytes.py	Thu Jul 17 01:18:51 2008
@@ -78,7 +78,8 @@
         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()])


More information about the Python-checkins mailing list