From dd8761ea1d478a5546d4570a8df86ad08d132db5 Mon Sep 17 00:00:00 2001 From: MinRK Date: Thu, 20 Oct 2011 10:36:10 -0700 Subject: [PATCH] Allow IPython to run without sqlite3 The History will always appear empty, so history magics, etc. don't do anything. Readline history for a single session works fine. Test suite should now pass without sqlite --- IPython/testing/iptest.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/IPython/testing/iptest.py b/IPython/testing/iptest.py index e97ad63e9..1ce0c3712 100644 --- a/IPython/testing/iptest.py +++ b/IPython/testing/iptest.py @@ -128,6 +128,7 @@ have['pymongo'] = test_for('pymongo') have['wx'] = test_for('wx') have['wx.aui'] = test_for('wx.aui') have['qt'] = test_for('IPython.external.qt') +have['sqlite3'] = test_for('sqlite3') have['tornado'] = test_for('tornado.version_info', (2,1,0), callback=None) @@ -204,7 +205,9 @@ def make_exclude(): ipjoin('config', 'default'), ipjoin('config', 'profile'), ] - + if not have['sqlite3']: + exclusions.append(ipjoin('core', 'tests', 'test_history')) + exclusions.append(ipjoin('core', 'history')) if not have['wx']: exclusions.append(ipjoin('lib', 'inputhookwx'))