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

Method check_run_submodule

IPython/core/tests/test_run.py:473–478  ·  view source on GitHub ↗
(self, submodule, opts='')

Source from the content-addressed store, hash-verified

471 self.tempdir.cleanup()
472
473 def check_run_submodule(self, submodule, opts=''):
474 _ip.user_ns.pop('x', None)
475 _ip.magic('run {2} -m {0}.{1}'.format(self.package, submodule, opts))
476 self.assertEqual(_ip.user_ns['x'], self.value,
477 'Variable `x` is not loaded from module `{0}`.'
478 .format(submodule))
479
480 def test_run_submodule_with_absolute_import(self):
481 self.check_run_submodule('absolute')

Calls 3

popMethod · 0.80
magicMethod · 0.45
formatMethod · 0.45

Tested by

no test coverage detected