##// END OF EJS Templates
Assume sqlite3 always available in testing.
Terry Davis -
Show More
@@ -248,10 +248,7 b' class TestMagicRunSimple(tt.TempFileMixin):'
248 248 " print('object A deleted')\n"
249 249 "a = A()\n")
250 250 self.mktmp(src)
251 if dec.module_not_available('sqlite3'):
252 err = 'WARNING: IPython History requires SQLite, your history will not be saved\n'
253 else:
254 err = None
251 err = None
255 252 tt.ipexec_validate(self.fname, 'object A deleted', err)
256 253
257 254 def test_aggressive_namespace_cleanup(self):
@@ -306,10 +303,7 b" ARGV 1-: ['C-third']"
306 303 tclass.py: deleting object: C-second
307 304 tclass.py: deleting object: C-third
308 305 """
309 if dec.module_not_available('sqlite3'):
310 err = 'WARNING: IPython History requires SQLite, your history will not be saved\n'
311 else:
312 err = None
306 err = None
313 307 tt.ipexec_validate(self.fname, out, err)
314 308
315 309 def test_run_i_after_reset(self):
@@ -20,9 +20,6 b' import unittest'
20 20 from IPython.testing import decorators as dec
21 21 from IPython.testing import tools as tt
22 22
23 sqlite_err_maybe = dec.module_not_available('sqlite3')
24 SQLITE_NOT_AVAILABLE_ERROR = ('WARNING: IPython History requires SQLite,'
25 ' your history will not be saved\n')
26 23
27 24 class TestFileToRun(tt.TempFileMixin, unittest.TestCase):
28 25 """Test the behavior of the file_to_run parameter."""
@@ -32,7 +29,7 b' class TestFileToRun(tt.TempFileMixin, unittest.TestCase):'
32 29 src = "print(__file__)\n"
33 30 self.mktmp(src)
34 31
35 err = SQLITE_NOT_AVAILABLE_ERROR if sqlite_err_maybe else None
32 err = None
36 33 tt.ipexec_validate(self.fname, self.fname, err)
37 34
38 35 def test_ipy_script_file_attribute(self):
@@ -40,7 +37,7 b' class TestFileToRun(tt.TempFileMixin, unittest.TestCase):'
40 37 src = "print(__file__)\n"
41 38 self.mktmp(src, ext='.ipy')
42 39
43 err = SQLITE_NOT_AVAILABLE_ERROR if sqlite_err_maybe else None
40 err = None
44 41 tt.ipexec_validate(self.fname, self.fname, err)
45 42
46 43 # The commands option to ipexec_validate doesn't work on Windows, and it
General Comments 0
You need to be logged in to leave comments. Login now