MCPcopy Create free account
hub / github.com/ipython/ipython / runf

Function runf

IPython/core/tests/test_magic_terminal.py:52–56  ·  view source on GitHub ↗

Marker function: sets a flag when executed.

()

Source from the content-addressed store, hash-verified

50 """Test cpaste magic"""
51
52 def runf():
53 """Marker function: sets a flag when executed.
54 """
55 ip.user_ns['code_ran'] = True
56 return 'runf' # return string so '+ runf()' doesn't result in success
57
58 tests = {'pass': ["runf()",
59 "In [1]: runf()",

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected