We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e424f68 commit 6d99f49Copy full SHA for 6d99f49
1 file changed
tests/test_magic.py
@@ -198,13 +198,14 @@ def test_magic_parse_long_options():
198
def doctest_hist_f():
199
"""Test %hist -f with temporary filename.
200
201
- In [9]: import tempfile
+ In [9]: import tempfile, os
202
203
- In [10]: _fd, tfile = tempfile.mkstemp('.py','tmp-ipython-')
+ In [10]: fd, tfile = tempfile.mkstemp('.py','tmp-ipython-')
204
+ In [11]: os.close(fd)
205
- In [11]: %history -nl -y -f $tfile 3
206
+ In [12]: %history -nl -y -f $tfile 3
207
- In [13]: import os; os.unlink(tfile)
208
+ In [14]: import os; os.unlink(tfile)
209
"""
210
211
0 commit comments