summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_funcattrs.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_funcattrs.py')
-rw-r--r--Lib/test/test_funcattrs.py4
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