MCPcopy Index your code
hub / github.com/python/cpython / close

Method close

Lib/test/test_yield_from.py:955–957  ·  view source on GitHub ↗
(self_)

Source from the content-addressed store, hash-verified

953 def __next__(self):
954 return 42
955 def close(self_):
956 self.assertTrue(g1.gi_running)
957 self.assertRaises(ValueError, next, g1)
958 def one():
959 yield from MyIt()
960 g1 = one()

Calls 2

assertTrueMethod · 0.80
assertRaisesMethod · 0.45

Tested by

no test coverage detected