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

Method run_tmpfile_p

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

Source from the content-addressed store, hash-verified

176 _ip.magic('run %s' % self.fname)
177
178 def run_tmpfile_p(self):
179 _ip = get_ipython()
180 # This fails on Windows if self.tmpfile.name has spaces or "~" in it.
181 # See below and ticket https://bugs.launchpad.net/bugs/366353
182 _ip.magic('run -p %s' % self.fname)
183
184 def test_builtins_id(self):
185 """Check that %run doesn't damage __builtins__ """

Callers 1

test_run_profileMethod · 0.95

Calls 2

get_ipythonFunction · 0.50
magicMethod · 0.45

Tested by

no test coverage detected