[Python-checkins] cpython: Issue #18666: improve test_frame a bit. Patch by Vajrasky Kok.

antoine.pitrou python-checkins at python.org
Tue Aug 6 23:05:32 CEST 2013


http://hg.python.org/cpython/rev/34e1ecb8edd2
changeset:   85059:34e1ecb8edd2
user:        Antoine Pitrou <solipsis at pitrou.net>
date:        Tue Aug 06 23:05:23 2013 +0200
summary:
  Issue #18666: improve test_frame a bit. Patch by Vajrasky Kok.

files:
  Lib/test/test_frame.py |  3 +++
  1 files changed, 3 insertions(+), 0 deletions(-)


diff --git a/Lib/test/test_frame.py b/Lib/test/test_frame.py
--- a/Lib/test/test_frame.py
+++ b/Lib/test/test_frame.py
@@ -90,6 +90,9 @@
         gen = g()
         f = next(gen)
         self.assertFalse(endly)
+        # Clearing the frame closes the generator
+        f.clear()
+        self.assertTrue(endly)
 
     @support.cpython_only
     def test_clear_refcycles(self):

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list