summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-08-06 21:05:23 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2013-08-06 21:05:23 (GMT)
commitdbfc129cc8f2a3ea3e6a0b7e6492887212923bc6 (patch)
treea4ed41b0131a7c6789dd986736c0a1dabf339b73 /Lib/test
parent47cd96eaeccc39075900dc1bde273768d603ef66 (diff)
downloadcpython-dbfc129cc8f2a3ea3e6a0b7e6492887212923bc6.zip
cpython-dbfc129cc8f2a3ea3e6a0b7e6492887212923bc6.tar.gz
cpython-dbfc129cc8f2a3ea3e6a0b7e6492887212923bc6.tar.bz2
Issue #18666: improve test_frame a bit. Patch by Vajrasky Kok.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_frame.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_frame.py b/Lib/test/test_frame.py
index daabba8..f42dad3 100644
--- a/Lib/test/test_frame.py
+++ b/Lib/test/test_frame.py
@@ -90,6 +90,9 @@ class ClearTest(unittest.TestCase):
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):