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

Method setUp

tests/test_interactiveshell.py:1116–1128  ·  view source on GitHub ↗

Make a valid python temp file.

(self)

Source from the content-addressed store, hash-verified

1114
1115class TestImportNoDeprecate(tt.TempFileMixin):
1116 def setUp(self):
1117 """Make a valid python temp file."""
1118 self.mktmp(
1119 """
1120import warnings
1121def wrn():
1122 warnings.warn(
1123 "I AM A WARNING",
1124 DeprecationWarning
1125 )
1126"""
1127 )
1128 super().setUp()
1129
1130 def test_no_dep(self):
1131 """

Callers

nothing calls this directly

Calls 2

mktmpMethod · 0.80
setUpMethod · 0.45

Tested by

no test coverage detected