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

Method setUp

IPython/core/tests/test_completer.py:150–155  ·  view source on GitHub ↗

We want to silence all PendingDeprecationWarning when testing the completer

(self)

Source from the content-addressed store, hash-verified

148
149class TestCompleter(unittest.TestCase):
150 def setUp(self):
151 """
152 We want to silence all PendingDeprecationWarning when testing the completer
153 """
154 self._assertwarns = self.assertWarns(PendingDeprecationWarning)
155 self._assertwarns.__enter__()
156
157 def tearDown(self):
158 try:

Callers

nothing calls this directly

Calls 1

__enter__Method · 0.45

Tested by

no test coverage detected