Skip to content

Commit 32f5fc7

Browse files
committed
tests: Do GC after each test
This makes it easier to understand which test causes ResourceWarnings.
1 parent f1d37c6 commit 32f5fc7

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

uvloop/_testbase.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ def setUp(self):
7373
def tearDown(self):
7474
self.loop.close()
7575

76+
# GC to show any resource warnings as the test completes
77+
gc.collect()
78+
gc.collect()
79+
gc.collect()
80+
7681
if getattr(self.loop, '_debug_cc', False):
7782
gc.collect()
7883
gc.collect()

0 commit comments

Comments
 (0)