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

Method setUp

IPython/core/tests/test_interactiveshell.py:977–987  ·  view source on GitHub ↗

Make a valid python temp file.

(self)

Source from the content-addressed store, hash-verified

975class TestImportNoDeprecate(tt.TempFileMixin):
976
977 def setUp(self):
978 """Make a valid python temp file."""
979 self.mktmp("""
980import warnings
981def wrn():
982 warnings.warn(
983 "I AM A WARNING",
984 DeprecationWarning
985 )
986""")
987 super().setUp()
988
989 def test_no_dep(self):
990 """

Callers

nothing calls this directly

Calls 2

mktmpMethod · 0.80
setUpMethod · 0.45

Tested by

no test coverage detected