[pypy-commit] pypy default: add test for 9913d8bb1a20

bdkearns noreply at buildbot.pypy.org
Tue Apr 29 05:28:59 CEST 2014


Author: Brian Kearns <bdkearns at gmail.com>
Branch: 
Changeset: r71059:0524dae88c75
Date: 2014-04-28 23:27 -0400
http://bitbucket.org/pypy/pypy/changeset/0524dae88c75/

Log:	add test for 9913d8bb1a20

diff --git a/pypy/interpreter/test/test_typedef.py b/pypy/interpreter/test/test_typedef.py
--- a/pypy/interpreter/test/test_typedef.py
+++ b/pypy/interpreter/test/test_typedef.py
@@ -387,3 +387,9 @@
         # because it's a regular method, and .__objclass__
         # differs from .im_class in case the method is
         # defined in some parent class of l's actual class
+
+    def test_func_closure(self):
+        x = 2
+        def f():
+            return x
+        assert f.__closure__[0].cell_contents is x


More information about the pypy-commit mailing list