[Python-3000-checkins] r58806 - python/branches/py3k-pep3137/Lib/test/test_descr.py

guido.van.rossum python-3000-checkins at python.org
Fri Nov 2 22:07:59 CET 2007


Author: guido.van.rossum
Date: Fri Nov  2 22:07:59 2007
New Revision: 58806

Modified:
   python/branches/py3k-pep3137/Lib/test/test_descr.py
Log:
Fix test_descr.py.
(Only str_of_str_subclass() was broken, due to b2a_hex() issues.)


Modified: python/branches/py3k-pep3137/Lib/test/test_descr.py
==============================================================================
--- python/branches/py3k-pep3137/Lib/test/test_descr.py	(original)
+++ python/branches/py3k-pep3137/Lib/test/test_descr.py	Fri Nov  2 22:07:59 2007
@@ -3145,7 +3145,7 @@
 
     class octetstring(str):
         def __str__(self):
-            return str(binascii.b2a_hex(self))
+            return binascii.b2a_hex(self).decode("ascii")
         def __repr__(self):
             return self + " repr"
 


More information about the Python-3000-checkins mailing list