File tree Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Expand file tree Collapse file tree 1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -134,12 +134,14 @@ def get_region_tests(test_region: str) -> list[str]:
134
134
Returns:
135
135
list[str]: A list of test file paths for the given region.
136
136
"""
137
- path_to_region = current_dir + "/ region/"
138
- with open (path_to_region + test_region + ".json" , "r" ) as fp :
137
+ path_to_region = os . path . join ( current_dir , " region" )
138
+ with open (os . path . join ( path_to_region , test_region ) + ".json" , "r" ) as fp :
139
139
region_data = load (fp )
140
140
raw_tests = region_data .get ("tests" , [])
141
141
return (
142
- list (map (lambda test : current_dir + "/Unified/" + test , raw_tests ))
142
+ list (
143
+ map (lambda test : os .path .join (current_dir , "Unified" , test ), raw_tests )
144
+ )
143
145
if len (raw_tests ) > 0
144
146
else raw_tests
145
147
)
You can’t perform that action at this time.
0 commit comments