##// END OF EJS Templates
Merge pull request #11470 from ellert/backport-11401...
Matthias Bussonnier -
r24826:ede2d270 merge
parent child Browse files
Show More
@@ -11,6 +11,7 b' import os'
11 11 import sys
12 12 import tempfile
13 13 from datetime import datetime
14 import sqlite3
14 15
15 16 # third party
16 17 import nose.tools as nt
@@ -19,11 +20,13 b' import nose.tools as nt'
19 20 from traitlets.config.loader import Config
20 21 from IPython.utils.tempdir import TemporaryDirectory
21 22 from IPython.core.history import HistoryManager, extract_hist_ranges
23 from IPython.testing.decorators import skipif
22 24 from IPython.utils import py3compat
23 25
24 26 def setUp():
25 27 nt.assert_equal(sys.getdefaultencoding(), "utf-8" if py3compat.PY3 else "ascii")
26 28
29 @skipif(sqlite3.sqlite_version_info > (3,24,0))
27 30 def test_history():
28 31 ip = get_ipython()
29 32 with TemporaryDirectory() as tmpdir:
@@ -86,6 +89,7 b' def test_history():'
86 89 nt.assert_equal(list(gothist), expected)
87 90
88 91 # Check get_hist_search
92
89 93 gothist = ip.history_manager.search("*test*")
90 94 nt.assert_equal(list(gothist), [(1,2,hist[1])] )
91 95
General Comments 0
You need to be logged in to leave comments. Login now