summaryrefslogtreecommitdiffstats
path: root/lldb/packages/Python/lldbsuite/test
diff options
context:
space:
mode:
authorDavide Italiano <davide@freebsd.org>2019-01-31 00:11:33 +0000
committerDavide Italiano <davide@freebsd.org>2019-01-31 00:11:33 +0000
commit0d298f5af5902e5421ecb341b3b7ae096946b840 (patch)
treeed20bc3aadd27007d561af20f273e9f508cd9cb1 /lldb/packages/Python/lldbsuite/test
parent8da9479e40512b3d1069cc5928c8aaca989fc124 (diff)
downloadbcm5719-llvm-0d298f5af5902e5421ecb341b3b7ae096946b840.tar.gz
bcm5719-llvm-0d298f5af5902e5421ecb341b3b7ae096946b840.zip
[Python] String(s) and bytes are two different entities in 3.7.
So, we need an explicit call to decode() here to let it work with both interpreters. Fixes TestXMMRegisters on 3.7. llvm-svn: 352701
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test')
-rw-r--r--lldb/packages/Python/lldbsuite/test/decorators.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lldb/packages/Python/lldbsuite/test/decorators.py b/lldb/packages/Python/lldbsuite/test/decorators.py
index 41ecf795a38..3d81df24f4a 100644
--- a/lldb/packages/Python/lldbsuite/test/decorators.py
+++ b/lldb/packages/Python/lldbsuite/test/decorators.py
@@ -803,7 +803,7 @@ def skipUnlessFeature(feature):
if platform.system() == 'Darwin':
try:
DEVNULL = open(os.devnull, 'w')
- output = subprocess.check_output(["/usr/sbin/sysctl", feature], stderr=DEVNULL)
+ output = subprocess.check_output(["/usr/sbin/sysctl", feature], stderr=DEVNULL).decode("utf-8")
# If 'feature: 1' was output, then this feature is available and
# the test should not be skipped.
if re.match('%s: 1\s*' % feature, output):
OpenPOWER on IntegriCloud