Author: Armin Rigo <[email protected]>
Branch:
Changeset: r44155:dbf44c4548ae
Date: 2011-05-14 12:37 +0200
http://bitbucket.org/pypy/pypy/changeset/dbf44c4548ae/
Log: A failing test, skipped. Unsure we want to care. It's definitely an
implementation detail, and it would make creating new functions
(e.g. lambdas) a bit slower.
diff --git a/pypy/interpreter/test/test_function.py
b/pypy/interpreter/test/test_function.py
--- a/pypy/interpreter/test/test_function.py
+++ b/pypy/interpreter/test/test_function.py
@@ -98,6 +98,14 @@
raises(TypeError, "dir.func_code = f.func_code")
raises(TypeError, "list.append.im_func.func_code = f.func_code")
+ def test_set_module_to_name_eagerly(self):
+ skip("fails on PyPy but works on CPython. Unsure we want to care")
+ exec '''if 1:
+ __name__ = "foo"
+ def f(): pass
+ __name__ = "bar"
+ assert f.__module__ == "foo"''' in {}
+
class AppTestFunction:
def test_simple_call(self):
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit