MCPcopy Create free account
hub / github.com/EasyIME/PIME / test_no_ref

Method test_no_ref

python/python3/tornado/test/gen_test.py:939–946  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

937
938 @gen_test
939 def test_no_ref(self):
940 # In this usage, there is no direct hard reference to the
941 # WaitIterator itself, only the Future it returns. Since
942 # WaitIterator uses weak references internally to improve GC
943 # performance, this used to cause problems.
944 yield gen.with_timeout(
945 datetime.timedelta(seconds=0.1), gen.WaitIterator(gen.sleep(0)).next()
946 )
947
948
949class RunnerGCTest(AsyncTestCase):

Callers

nothing calls this directly

Calls 1

nextMethod · 0.80

Tested by

no test coverage detected