MCPcopy Index your code
hub / github.com/ipython/ipython / test_extraneous_loads

Method test_extraneous_loads

tests/test_interactiveshell.py:738–747  ·  view source on GitHub ↗

Test we're not loading modules on startup that we shouldn't.

(self)

Source from the content-addressed store, hash-verified

736
737class TestModules(tt.TempFileMixin):
738 def test_extraneous_loads(self):
739 """Test we're not loading modules on startup that we shouldn't."""
740 self.mktmp(
741 "import sys\n"
742 "print('numpy' in sys.modules)\n"
743 "print('ipyparallel' in sys.modules)\n"
744 "print('ipykernel' in sys.modules)\n"
745 )
746 out = "False\nFalse\nFalse\n"
747 tt.ipexec_validate(self.fname, out)
748
749
750class Negator(ast.NodeTransformer):

Callers

nothing calls this directly

Calls 1

mktmpMethod · 0.80

Tested by

no test coverage detected