Skip to content

Commit 657d3e3

Browse files
authored
Merge pull request swiftlang#32859 from compnerd/empirically-testing
validation: make test_shell Python3 friendly
2 parents b16c5c1 + 4586a6a commit 657d3e3

File tree

1 file changed

+1
-1
lines changed
  • utils/swift_build_support/swift_build_support

1 file changed

+1
-1
lines changed

utils/swift_build_support/swift_build_support/shell.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ def capture(command, stderr=None, env=None, dry_run=None, echo=True,
137137
return str(out.decode())
138138
except subprocess.CalledProcessError as e:
139139
if allow_non_zero_exit:
140-
return e.output
140+
return str(e.output.decode())
141141
if optional:
142142
return None
143143
_fatal_error(

0 commit comments

Comments
 (0)