summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_scope.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_scope.py')
-rw-r--r--Lib/test/test_scope.py7
1 files changed, 7 insertions, 0 deletions
diff --git a/Lib/test/test_scope.py b/Lib/test/test_scope.py
index ccb9016..c18445d 100644
--- a/Lib/test/test_scope.py
+++ b/Lib/test/test_scope.py
@@ -573,6 +573,13 @@ self.assert_(X.passed)
f(4)()
+ def testFreeingCell(self):
+ # Test what happens when a finalizer accesses
+ # the cell where the object was stored.
+ class Special:
+ def __del__(self):
+ nestedcell_get()
+
def testNonLocalFunction(self):
def f(x):