Skip to content

Commit 1dbe1f9

Browse files
committed
change import
1 parent 6a6577a commit 1dbe1f9

File tree

2 files changed

+6
-10
lines changed

2 files changed

+6
-10
lines changed

test/asynchronous/test_connection_monitoring.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
from __future__ import annotations
1717

1818
import os
19-
import pathlib
2019
import sys
2120
import time
21+
from pathlib import Path
2222

2323
sys.path[0:0] = [""]
2424

@@ -85,11 +85,9 @@
8585
class AsyncTestCMAP(AsyncIntegrationTest):
8686
# Location of JSON test specifications.
8787
if _IS_SYNC:
88-
TEST_PATH = os.path.join(pathlib.Path(__file__).resolve().parent, "connection_monitoring")
88+
TEST_PATH = os.path.join(Path(__file__).resolve().parent, "connection_monitoring")
8989
else:
90-
TEST_PATH = os.path.join(
91-
pathlib.Path(__file__).resolve().parent.parent, "connection_monitoring"
92-
)
90+
TEST_PATH = os.path.join(Path(__file__).resolve().parent.parent, "connection_monitoring")
9391

9492
# Test operations:
9593

test/test_connection_monitoring.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,9 +16,9 @@
1616
from __future__ import annotations
1717

1818
import os
19-
import pathlib
2019
import sys
2120
import time
21+
from pathlib import Path
2222

2323
sys.path[0:0] = [""]
2424

@@ -85,11 +85,9 @@
8585
class TestCMAP(IntegrationTest):
8686
# Location of JSON test specifications.
8787
if _IS_SYNC:
88-
TEST_PATH = os.path.join(pathlib.Path(__file__).resolve().parent, "connection_monitoring")
88+
TEST_PATH = os.path.join(Path(__file__).resolve().parent, "connection_monitoring")
8989
else:
90-
TEST_PATH = os.path.join(
91-
pathlib.Path(__file__).resolve().parent.parent, "connection_monitoring"
92-
)
90+
TEST_PATH = os.path.join(Path(__file__).resolve().parent.parent, "connection_monitoring")
9391

9492
# Test operations:
9593

0 commit comments

Comments
 (0)