(self)
| 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 | |
| 949 | class RunnerGCTest(AsyncTestCase): |