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 1616from __future__ import annotations
1717
1818import os
19+ import pathlib
1920import sys
2021
2122sys .path [0 :0 ] = ["" ]
3031_IS_SYNC = False
3132
3233# 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" )
3438
3539# Generate unified tests.
3640globals ().update (generate_test_classes (TEST_PATH , module = __name__ ))
Original file line number Diff line number Diff line change 1616from __future__ import annotations
1717
1818import os
19+ import pathlib
1920import sys
2021
2122sys .path [0 :0 ] = ["" ]
3031_IS_SYNC = True
3132
3233# 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" )
3438
3539# Generate unified tests.
3640globals ().update (generate_test_classes (TEST_PATH , module = __name__ ))
You can’t perform that action at this time.
0 commit comments