Skip to content

Commit 41adee1

Browse files
committed
test: fix the inverted conversion
The resulting string a byte string and needs to be converted to a string like object. This was meant to be a `decode`, not `encode`.
1 parent 1d4009a commit 41adee1

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.encode('utf-8'))
75+
ios_version_str = re.findall(r'iOS \d+\.*\d*', sim_output.decode('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)