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

Function doctest_hist_r

IPython/core/tests/test_magic.py:193–208  ·  view source on GitHub ↗

Test %hist -r XXX - This test is not recording the output correctly. For some reason, in testing mode the raw history isn't getting populated. No idea why. Disabling the output checking for now, though at least we do run it. In [1]: 'hist' in _ip.lsmagic() Out[1]: True I

()

Source from the content-addressed store, hash-verified

191
192@dec.skip_without('sqlite3')
193def doctest_hist_r():
194 """Test %hist -r
195
196 XXX - This test is not recording the output correctly. For some reason, in
197 testing mode the raw history isn't getting populated. No idea why.
198 Disabling the output checking for now, though at least we do run it.
199
200 In [1]: 'hist' in _ip.lsmagic()
201 Out[1]: True
202
203 In [2]: x=1
204
205 In [3]: %hist -rl 2
206 x=1 # random
207 %hist -r 2
208 """
209
210
211@dec.skip_without('sqlite3')

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected