force gc in test

pull/17899/head
Eric Gribkoff 6 years ago
parent c5255e9a5e
commit 28252eb0dd
  1. 3
      src/python/grpcio_tests/tests/unit/_abort_test.py

@ -15,6 +15,7 @@
import unittest
import collections
import gc
import logging
import weakref
@ -124,6 +125,8 @@ class AbortTest(unittest.TestCase):
rpc_error = exception_context.exception
do_not_leak_me = None
# Force garbage collection
gc.collect()
self.assertIsNone(weak_ref())
def test_abort_with_status(self):

Loading…
Cancel
Save