Skip to content

Commit 84f44bf

Browse files
authored
Merge pull request swiftlang#33244 from compnerd/simulation
test: convert the output to string
2 parents 03168d7 + ff2a12a commit 84f44bf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

test/lit.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def darwin_get_sw_vers(commandPrefix=[]):
7272

7373
def darwin_get_ios_sim_vers():
7474
sim_output = subprocess.check_output(['xcrun', 'simctl', 'list', 'runtimes'])
75-
ios_version_str = re.findall(r'iOS \d+\.*\d*',sim_output)
75+
ios_version_str = re.findall(r'iOS \d+\.*\d*', sim_output.encode('utf-8'))
7676
return [float(v.strip('iOS')) for v in ios_version_str]
7777

7878
# Returns the "prefix" command that should be prepended to the command line to

0 commit comments

Comments
 (0)