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

Method test_run_formatting

IPython/core/tests/test_run.py:372–377  ·  view source on GitHub ↗

Test that %run -t -N does not raise a TypeError for N > 1.

(self)

Source from the content-addressed store, hash-verified

370 nt.assert_equal(file1, file2)
371
372 def test_run_formatting(self):
373 """ Test that %run -t -N<N> does not raise a TypeError for N > 1."""
374 src = "pass"
375 self.mktmp(src)
376 _ip.magic('run -t -N 1 %s' % self.fname)
377 _ip.magic('run -t -N 10 %s' % self.fname)
378
379 def test_ignore_sys_exit(self):
380 """Test the -e option to ignore sys.exit()"""

Callers

nothing calls this directly

Calls 2

mktmpMethod · 0.80
magicMethod · 0.45

Tested by

no test coverage detected