From 2565d90dd746cfb6b68435bbb3c3e236d8e57197 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Walter=20D=C3=B6rwald?= Date: Thu, 24 May 2007 17:34:27 +0000 Subject: [PATCH] Fix test_funcattrs.py: __name__ attribute must be str8. --- Lib/test/test_funcattrs.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_funcattrs.py b/Lib/test/test_funcattrs.py index 528ca18ad76..59f461378ae 100644 --- a/Lib/test/test_funcattrs.py +++ b/Lib/test/test_funcattrs.py @@ -258,8 +258,8 @@ def test_func_globals(): 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