Avoid ResourceWarnings in TestPooling.
This commit is contained in:
parent
2bc6d9337d
commit
49403798dd
@ -123,6 +123,10 @@ class SocketGetter(MongoThread):
|
||||
|
||||
self.state = 'sock'
|
||||
|
||||
def __del__(self):
|
||||
if self.sock:
|
||||
self.sock.close()
|
||||
|
||||
|
||||
def run_cases(client, cases):
|
||||
threads = []
|
||||
|
||||
Loading…
Reference in New Issue
Block a user