Commit b714f94e authored by Walter Dörwald's avatar Walter Dörwald

Fix test_funcattrs.py: __name__ attribute must be str8.

parent ca4471f8
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment