Author: walter.doerwald
Date: Thu May 24 19:34:27 2007
New Revision: 55551

Modified:
   python/branches/py3k-struni/Lib/test/test_funcattrs.py
Log:
Fix test_funcattrs.py: __name__ attribute must be str8.


Modified: python/branches/py3k-struni/Lib/test/test_funcattrs.py
==============================================================================
--- python/branches/py3k-struni/Lib/test/test_funcattrs.py      (original)
+++ python/branches/py3k-struni/Lib/test/test_funcattrs.py      Thu May 24 
19:34:27 2007
@@ -258,8 +258,8 @@
 def test_func_name():
     def f(): pass
     verify(f.__name__ == "f")
-    f.__name__ = "g"
-    verify(f.__name__ == "g")
+    f.__name__ = str8("g")
+    verify(f.__name__ == str8("g"))
     cantset(f, "__globals__", 1)
     cantset(f, "__name__", 1)
     # test that you can access func.__name__ in restricted mode
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins

Reply via email to