Test we're not loading modules on startup that we shouldn't.
(self)
| 736 | |
| 737 | class 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 | |
| 750 | class Negator(ast.NodeTransformer): |