mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Issue #18666: improve test_frame a bit. Patch by Vajrasky Kok.
This commit is contained in:
parent
47cd96eaec
commit
dbfc129cc8
1 changed files with 3 additions and 0 deletions
|
@ -90,6 +90,9 @@ class ClearTest(unittest.TestCase):
|
||||||
gen = g()
|
gen = g()
|
||||||
f = next(gen)
|
f = next(gen)
|
||||||
self.assertFalse(endly)
|
self.assertFalse(endly)
|
||||||
|
# Clearing the frame closes the generator
|
||||||
|
f.clear()
|
||||||
|
self.assertTrue(endly)
|
||||||
|
|
||||||
@support.cpython_only
|
@support.cpython_only
|
||||||
def test_clear_refcycles(self):
|
def test_clear_refcycles(self):
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue