MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / __del__

Method __del__

test/helpers.py:108–122  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

106 return make_wrapper(func)
107
108 def __del__(self):
109 if self._enabled:
110 msg = (
111 "ERROR: client_knobs still enabled! HEARTBEAT_FREQUENCY={}, "
112 "MIN_HEARTBEAT_INTERVAL={}, KILL_CURSOR_FREQUENCY={}, "
113 "EVENTS_QUEUE_FREQUENCY={}, stack:\n{}".format(
114 common.HEARTBEAT_FREQUENCY,
115 common.MIN_HEARTBEAT_INTERVAL,
116 common.KILL_CURSOR_FREQUENCY,
117 common.EVENTS_QUEUE_FREQUENCY,
118 self._stack,
119 )
120 )
121 self.disable()
122 raise Exception(msg)
123
124
125# Global knobs to speed up the test suite.

Callers 4

deleteMethod · 0.45

Calls 1

disableMethod · 0.95

Tested by 4

deleteMethod · 0.36