Skip to content

Commit 0c1fa20

Browse files
committed
Remove AsyncMongoClient use from test_versioned_api
1 parent e897be9 commit 0c1fa20

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

test/test_versioned_api.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@
1818

1919
sys.path[0:0] = [""]
2020

21-
from test.asynchronous import unittest
21+
from test import unittest
2222

23-
from pymongo.asynchronous.mongo_client import AsyncMongoClient
23+
from pymongo.mongo_client import MongoClient
2424
from pymongo.server_api import ServerApi, ServerApiVersion
2525

2626

@@ -51,7 +51,7 @@ def test_server_api_validation(self):
5151
with self.assertRaises(TypeError):
5252
ServerApi("1", deprecation_errors="not-a-bool") # type: ignore[arg-type]
5353
with self.assertRaises(TypeError):
54-
AsyncMongoClient(server_api="not-a-ServerApi")
54+
MongoClient(server_api="not-a-ServerApi")
5555

5656
def assertServerApi(self, event):
5757
self.assertIn("apiVersion", event.command)

0 commit comments

Comments
 (0)