Skip to content

Commit c36586b

Browse files
committed
modify imports
1 parent 469013b commit c36586b

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

test/asynchronous/test_csot.py

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

1818
import os
19-
import pathlib
2019
import sys
20+
from pathlib import Path
2121

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

@@ -32,9 +32,9 @@
3232

3333
# Location of JSON test specifications.
3434
if _IS_SYNC:
35-
TEST_PATH = os.path.join(pathlib.Path(__file__).resolve().parent, "csot")
35+
TEST_PATH = os.path.join(Path(__file__).resolve().parent, "csot")
3636
else:
37-
TEST_PATH = os.path.join(pathlib.Path(__file__).resolve().parent.parent, "csot")
37+
TEST_PATH = os.path.join(Path(__file__).resolve().parent.parent, "csot")
3838

3939
# Generate unified tests.
4040
globals().update(generate_test_classes(TEST_PATH, module=__name__))

test/test_csot.py

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

1818
import os
19-
import pathlib
2019
import sys
20+
from pathlib import Path
2121

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

@@ -32,9 +32,9 @@
3232

3333
# Location of JSON test specifications.
3434
if _IS_SYNC:
35-
TEST_PATH = os.path.join(pathlib.Path(__file__).resolve().parent, "csot")
35+
TEST_PATH = os.path.join(Path(__file__).resolve().parent, "csot")
3636
else:
37-
TEST_PATH = os.path.join(pathlib.Path(__file__).resolve().parent.parent, "csot")
37+
TEST_PATH = os.path.join(Path(__file__).resolve().parent.parent, "csot")
3838

3939
# Generate unified tests.
4040
globals().update(generate_test_classes(TEST_PATH, module=__name__))

0 commit comments

Comments
 (0)