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

Function doctest_runvars

IPython/testing/plugin/test_refs.py:23–31  ·  view source on GitHub ↗

Test that variables defined in scripts get loaded correctly via %run. In [13]: run simplevars.py x is: 1 In [14]: x Out[14]: 1

()

Source from the content-addressed store, hash-verified

21 """
22
23def doctest_runvars():
24 """Test that variables defined in scripts get loaded correctly via %run.
25
26 In [13]: run simplevars.py
27 x is: 1
28
29 In [14]: x
30 Out[14]: 1
31 """
32
33def doctest_ivars():
34 """Test that variables defined interactively are picked up.

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected