MCPcopy Create free account
hub / github.com/ipython/ipython / test_tclass

Method test_tclass

IPython/core/tests/test_run.py:294–313  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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 = """\
302ARGV 1-: ['C-first']
303ARGV 1-: ['C-second']
304tclass.py: deleting object: C-first
305ARGV 1-: ['C-third']
306tclass.py: deleting object: C-second
307tclass.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)"""

Callers

nothing calls this directly

Calls 1

mktmpMethod · 0.80

Tested by

no test coverage detected