Remove the dependency on objgraph
This commit is contained in:
parent
c0cbac214e
commit
1879e28e94
|
@ -2,7 +2,6 @@
|
|||
|
||||
import gc
|
||||
import time
|
||||
import objgraph
|
||||
|
||||
from minode import shared
|
||||
|
||||
|
@ -50,6 +49,9 @@ class TestListener(TestProcessProto):
|
|||
self.fail('The connection is alive')
|
||||
|
||||
gc.collect()
|
||||
for c in objgraph.by_type('Connection'):
|
||||
if c not in shared.connections:
|
||||
self.fail('Connection %s remained in memory' % c)
|
||||
for obj in gc.get_objects():
|
||||
if (
|
||||
isinstance(obj, shared.connection)
|
||||
and obj not in shared.connections
|
||||
):
|
||||
self.fail('Connection %s remains in memory' % obj)
|
||||
|
|
|
@ -1,3 +1,2 @@
|
|||
coverage
|
||||
objgraph
|
||||
psutil
|
||||
|
|
Loading…
Reference in New Issue
Block a user