| 292 | |
| 293 | @dec.skip_win32 |
| 294 | def test_tclass(self): |
| 295 | mydir = os.path.dirname(__file__) |
| 296 | tc = os.path.join(mydir, 'tclass') |
| 297 | src = ("%%run '%s' C-first\n" |
| 298 | "%%run '%s' C-second\n" |
| 299 | "%%run '%s' C-third\n") % (tc, tc, tc) |
| 300 | self.mktmp(src, '.ipy') |
| 301 | out = """\ |
| 302 | ARGV 1-: ['C-first'] |
| 303 | ARGV 1-: ['C-second'] |
| 304 | tclass.py: deleting object: C-first |
| 305 | ARGV 1-: ['C-third'] |
| 306 | tclass.py: deleting object: C-second |
| 307 | tclass.py: deleting object: C-third |
| 308 | """ |
| 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 |
| 313 | tt.ipexec_validate(self.fname, out, err) |
| 314 | |
| 315 | def test_run_i_after_reset(self): |
| 316 | """Check that %run -i still works after %reset (gh-693)""" |