]> granicus.if.org Git - python/commitdiff
compare with empty bytes
authorBenjamin Peterson <benjamin@python.org>
Sun, 11 Apr 2010 23:51:24 +0000 (23:51 +0000)
committerBenjamin Peterson <benjamin@python.org>
Sun, 11 Apr 2010 23:51:24 +0000 (23:51 +0000)
Lib/test/test_gdb.py

index 77cf94f91095a86150fbc8873f18faaa2a8c9960..2f50b8807fe641771f84e07c22c804285f3c1489 100644 (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")