MCPcopy Create free account
hub / github.com/fabioz/PyDev.Debugger / _check_gevent

Function _check_gevent

tests_python/test_utilities.py:399–410  ·  view source on GitHub ↗
(expect_msg)

Source from the content-addressed store, hash-verified

397
398
399def _check_gevent(expect_msg):
400 from _pydevd_bundle.pydevd_utils import notify_about_gevent_if_needed
401
402 assert not notify_about_gevent_if_needed()
403 import gevent
404
405 assert not notify_about_gevent_if_needed()
406 import gevent.monkey
407
408 assert not notify_about_gevent_if_needed()
409 gevent.monkey.patch_all()
410 assert notify_about_gevent_if_needed() == expect_msg
411
412
413def check_notify_on_gevent_loaded():

Calls 1

Tested by

no test coverage detected