Skip to content

Commit 0b9e096

Browse files
committed
Address review
1 parent ebcbe08 commit 0b9e096

File tree

2 files changed

+2
-10
lines changed

2 files changed

+2
-10
lines changed

test/asynchronous/test_pooling.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import socket
2222
import sys
2323
import time
24-
from test.asynchronous.helpers import ConcurrentRunner
2524

2625
from bson.codec_options import DEFAULT_CODEC_OPTIONS
2726
from bson.son import SON
@@ -33,6 +32,7 @@
3332
sys.path[0:0] = [""]
3433

3534
from test.asynchronous import AsyncIntegrationTest, async_client_context, unittest
35+
from test.asynchronous.helpers import ConcurrentRunner
3636
from test.utils import async_get_pool, async_joinall, delay
3737

3838
from 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)

test/test_pooling.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
import socket
2222
import sys
2323
import time
24-
from test.helpers import ConcurrentRunner
2524

2625
from bson.codec_options import DEFAULT_CODEC_OPTIONS
2726
from bson.son import SON
@@ -33,6 +32,7 @@
3332
sys.path[0:0] = [""]
3433

3534
from test import IntegrationTest, client_context, unittest
35+
from test.helpers import ConcurrentRunner
3636
from test.utils import delay, get_pool, joinall
3737

3838
from 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)

0 commit comments

Comments
 (0)