summaryrefslogtreecommitdiff
path: root/gbp/command_wrappers.py
diff options
context:
space:
mode:
Diffstat (limited to 'gbp/command_wrappers.py')
-rw-r--r--gbp/command_wrappers.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/gbp/command_wrappers.py b/gbp/command_wrappers.py
index 72dfee5..3e834c6 100644
--- a/gbp/command_wrappers.py
+++ b/gbp/command_wrappers.py
@@ -170,12 +170,12 @@ class Command(object):
>>> c = Command("/bin/true", capture_stdout=True)
>>> c.call(["--version"])
0
- >>> c.stdout.startswith('true')
+ >>> c.stdout.decode('utf-8').startswith('true')
True
>>> c = Command("/bin/false", capture_stdout=True)
>>> c.call(["--help"])
1
- >>> c.stdout.startswith('Usage:')
+ >>> c.stdout.decode('utf-8').startswith('Usage:')
True
"""
try: