File tree Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Expand file tree Collapse file tree 2 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 16
16
from __future__ import annotations
17
17
18
18
import os
19
+ import pathlib
19
20
import sys
20
21
21
22
sys .path [0 :0 ] = ["" ]
30
31
_IS_SYNC = False
31
32
32
33
# Location of JSON test specifications.
33
- TEST_PATH = os .path .join (os .path .dirname (os .path .realpath (__file__ )), "csot" )
34
+ if _IS_SYNC :
35
+ TEST_PATH = os .path .join (pathlib .Path (__file__ ).resolve ().parent , "csot" )
36
+ else :
37
+ TEST_PATH = os .path .join (pathlib .Path (__file__ ).resolve ().parent .parent , "csot" )
34
38
35
39
# Generate unified tests.
36
40
globals ().update (generate_test_classes (TEST_PATH , module = __name__ ))
Original file line number Diff line number Diff line change 16
16
from __future__ import annotations
17
17
18
18
import os
19
+ import pathlib
19
20
import sys
20
21
21
22
sys .path [0 :0 ] = ["" ]
30
31
_IS_SYNC = True
31
32
32
33
# Location of JSON test specifications.
33
- TEST_PATH = os .path .join (os .path .dirname (os .path .realpath (__file__ )), "csot" )
34
+ if _IS_SYNC :
35
+ TEST_PATH = os .path .join (pathlib .Path (__file__ ).resolve ().parent , "csot" )
36
+ else :
37
+ TEST_PATH = os .path .join (pathlib .Path (__file__ ).resolve ().parent .parent , "csot" )
34
38
35
39
# Generate unified tests.
36
40
globals ().update (generate_test_classes (TEST_PATH , module = __name__ ))
You can’t perform that action at this time.
0 commit comments