MCPcopy Index your code
hub / github.com/RustPython/RustPython / close

Method close

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

Source from the content-addressed store, hash-verified

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

Calls 2

assertTrueMethod · 0.80
assertRaisesMethod · 0.45

Tested by

no test coverage detected