compare with empty bytes

This commit is contained in:
Benjamin Peterson 2010-04-11 23:51:24 +00:00
parent 6a45e9df94
commit 9faa7ec08b

View file

@ -28,7 +28,7 @@ cmd = "--eval-command=python import sys; print sys.version_info"
p = subprocess.Popen(["gdb", "--batch", cmd],
stdout=subprocess.PIPE)
gdbpy_version, _ = p.communicate()
if gdbpy_version == '':
if gdbpy_version == b'':
raise unittest.SkipTest("gdb not built with embedded python support")