diff options
author | Walter Dörwald <walter@livinglogic.de> | 2007-05-24 17:34:27 (GMT) |
---|---|---|
committer | Walter Dörwald <walter@livinglogic.de> | 2007-05-24 17:34:27 (GMT) |
commit | 2565d90dd746cfb6b68435bbb3c3e236d8e57197 (patch) | |
tree | 713a032c790a34d9c4031f9ec915c8b3a201c655 | |
parent | 305b9246a75cf4b1eac29c9b5b41cb5541daa7ee (diff) | |
download | cpython-2565d90dd746cfb6b68435bbb3c3e236d8e57197.zip cpython-2565d90dd746cfb6b68435bbb3c3e236d8e57197.tar.gz cpython-2565d90dd746cfb6b68435bbb3c3e236d8e57197.tar.bz2 |
Fix test_funcattrs.py: __name__ attribute must be str8.
-rw-r--r-- | Lib/test/test_funcattrs.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_funcattrs.py b/Lib/test/test_funcattrs.py index 528ca18..59f4613 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 |