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

Method b

Lib/test/test_generators.py:980–985  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

978 self.assertIsNone(gen_b.gi_yieldfrom)
979
980 def b():
981 self.assertIsNone(gen_b.gi_yieldfrom)
982 yield from a()
983 self.assertIsNone(gen_b.gi_yieldfrom)
984 yield
985 self.assertIsNone(gen_b.gi_yieldfrom)
986
987 gen_b = b()
988 self.assertEqual(inspect.getgeneratorstate(gen_b), inspect.GEN_CREATED)

Callers

nothing calls this directly

Calls 2

assertIsNoneMethod · 0.80
aClass · 0.70

Tested by

no test coverage detected