MCPcopy Index your code
hub / github.com/ipython/ipython / test_nested_genexpr

Method test_nested_genexpr

tests/test_ultratb.py:147–160  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

145 """
146
147 def test_nested_genexpr(self):
148 code = dedent(
149 """\
150 class SpecificException(Exception):
151 pass
152
153 def foo_8293(x):
154 raise SpecificException("Success!")
155
156 sum(sum(foo_8293(x) for _ in [0]) for x in [0])
157 """
158 )
159 with tt.AssertPrints("SpecificException: Success!", suppress=False):
160 ip.run_cell(code)
161
162
163indentationerror_file = """if True:

Callers

nothing calls this directly

Calls 2

dedentFunction · 0.85
run_cellMethod · 0.45

Tested by

no test coverage detected