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

Function doctest_hist_f

IPython/core/tests/test_magic.py:179–189  ·  view source on GitHub ↗

Test %hist -f with temporary filename. In [9]: import tempfile In [10]: tfile = tempfile.mktemp('.py','tmp-ipython-') In [11]: %hist -nl -f $tfile 3 In [13]: import os; os.unlink(tfile)

()

Source from the content-addressed store, hash-verified

177
178@dec.skip_without('sqlite3')
179def doctest_hist_f():
180 """Test %hist -f with temporary filename.
181
182 In [9]: import tempfile
183
184 In [10]: tfile = tempfile.mktemp('.py','tmp-ipython-')
185
186 In [11]: %hist -nl -f $tfile 3
187
188 In [13]: import os; os.unlink(tfile)
189 """
190
191
192@dec.skip_without('sqlite3')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected