Fixed comparison with binary string

This commit is contained in:
Nic Herndon
2018-06-30 16:28:43 +00:00
parent 5dbae1ddcf
commit a221a37af3
+1 -1
View File
@@ -453,7 +453,7 @@ def __assert_foo_exported(commands):
command = ["bash", "-c", "%s; echo \"$FOO\"" % "".join(commands)]
process = Popen(command, stdout=PIPE)
output = process.communicate()[0].strip()
assert output == 'bar', "Command %s exports FOO as %s, not bar" % (command, output)
assert output == b'bar', "Command %s exports FOO as %s, not bar" % (command, output)
def __setup_galaxy_package_dep(base_path, name, version, contents=""):