File tree Expand file tree Collapse file tree 2 files changed +2
-10
lines changed
Expand file tree Collapse file tree 2 files changed +2
-10
lines changed Original file line number Diff line number Diff line change 2121import socket
2222import sys
2323import time
24- from test .asynchronous .helpers import ConcurrentRunner
2524
2625from bson .codec_options import DEFAULT_CODEC_OPTIONS
2726from bson .son import SON
3332sys .path [0 :0 ] = ["" ]
3433
3534from test .asynchronous import AsyncIntegrationTest , async_client_context , unittest
35+ from test .asynchronous .helpers import ConcurrentRunner
3636from test .utils import async_get_pool , async_joinall , delay
3737
3838from pymongo .asynchronous .pool import Pool , PoolOptions
@@ -158,10 +158,6 @@ async def asyncSetUp(self):
158158 await db .unique .insert_one ({"_id" : "jesse" })
159159 await db .test .insert_many ([{} for _ in range (10 )])
160160
161- async def asyncTearDown (self ):
162- await self .c .close ()
163- await super ().asyncTearDown ()
164-
165161 async def create_pool (self , pair = None , * args , ** kwargs ):
166162 if pair is None :
167163 pair = (await async_client_context .host , await async_client_context .port )
Original file line number Diff line number Diff line change 2121import socket
2222import sys
2323import time
24- from test .helpers import ConcurrentRunner
2524
2625from bson .codec_options import DEFAULT_CODEC_OPTIONS
2726from bson .son import SON
3332sys .path [0 :0 ] = ["" ]
3433
3534from test import IntegrationTest , client_context , unittest
35+ from test .helpers import ConcurrentRunner
3636from test .utils import delay , get_pool , joinall
3737
3838from pymongo .socket_checker import SocketChecker
@@ -158,10 +158,6 @@ def setUp(self):
158158 db .unique .insert_one ({"_id" : "jesse" })
159159 db .test .insert_many ([{} for _ in range (10 )])
160160
161- def tearDown (self ):
162- self .c .close ()
163- super ().tearDown ()
164-
165161 def create_pool (self , pair = None , * args , ** kwargs ):
166162 if pair is None :
167163 pair = (client_context .host , client_context .port )
You can’t perform that action at this time.
0 commit comments