Skip to content

Commit 3b63840

Browse files
committed
modify path
1 parent 2e62605 commit 3b63840

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

test/asynchronous/test_discovery_and_monitoring.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717

1818
import asyncio
1919
import os
20-
import pathlib
2120
import socketserver
2221
import sys
2322
import threading
23+
from pathlib import Path
2424

2525
sys.path[0:0] = [""]
2626

@@ -36,7 +36,6 @@
3636
async_get_pool,
3737
async_wait_until,
3838
server_name_to_type,
39-
wait_until,
4039
)
4140
from unittest.mock import patch
4241

@@ -62,10 +61,10 @@
6261

6362
# Location of JSON test specifications.
6463
if _IS_SYNC:
65-
SDAM_PATH = os.path.join(pathlib.Path(__file__).resolve().parent, "discovery_and_monitoring")
64+
SDAM_PATH = os.path.join(Path(__file__).resolve().parent, "discovery_and_monitoring")
6665
else:
6766
SDAM_PATH = os.path.join(
68-
pathlib.Path(__file__).resolve().parent.parent,
67+
Path(__file__).resolve().parent.parent,
6968
"discovery_and_monitoring",
7069
)
7170

test/test_discovery_and_monitoring.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@
1717

1818
import asyncio
1919
import os
20-
import pathlib
2120
import socketserver
2221
import sys
2322
import threading
23+
from pathlib import Path
2424

2525
sys.path[0:0] = [""]
2626

@@ -61,10 +61,10 @@
6161

6262
# Location of JSON test specifications.
6363
if _IS_SYNC:
64-
SDAM_PATH = os.path.join(pathlib.Path(__file__).resolve().parent, "discovery_and_monitoring")
64+
SDAM_PATH = os.path.join(Path(__file__).resolve().parent, "discovery_and_monitoring")
6565
else:
6666
SDAM_PATH = os.path.join(
67-
pathlib.Path(__file__).resolve().parent.parent,
67+
Path(__file__).resolve().parent.parent,
6868
"discovery_and_monitoring",
6969
)
7070

0 commit comments

Comments
 (0)