summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@gmail.com>2015-09-03 07:45:53 (GMT)
committerVictor Stinner <victor.stinner@gmail.com>2015-09-03 07:45:53 (GMT)
commit26afae40194fe4fa38d74970d5b0f285ede19e24 (patch)
tree6f715344e5702f3ea5e04515719983b470e1905b /Lib
parentac5004f7ced7b0d4e410af2e005dd7a400bf26ac (diff)
downloadcpython-26afae40194fe4fa38d74970d5b0f285ede19e24.zip
cpython-26afae40194fe4fa38d74970d5b0f285ede19e24.tar.gz
cpython-26afae40194fe4fa38d74970d5b0f285ede19e24.tar.bz2
test_gdb: fix regex to parse GDB version for 'GNU gdb 6.1.1 [FreeBSD]\n'
Diffstat (limited to 'Lib')
-rw-r--r--Lib/test/test_gdb.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_gdb.py b/Lib/test/test_gdb.py
index 664d08c..5059fb4 100644
--- a/Lib/test/test_gdb.py
+++ b/Lib/test/test_gdb.py
@@ -36,7 +36,8 @@ def get_gdb_version():
# Regex to parse:
# 'GNU gdb (GDB; SUSE Linux Enterprise 12) 7.7\n' -> 7.7
# 'GNU gdb (GDB) Fedora 7.9.1-17.fc22\n' -> 7.9
- match = re.search("^GNU gdb .*? (\d+)\.(\d)", version)
+ # 'GNU gdb 6.1.1 [FreeBSD]\n'
+ match = re.search("^GNU gdb.*? (\d+)\.(\d)", version)
if match is None:
raise Exception("unable to parse GDB version: %r" % version)
return (version, int(match.group(1)), int(match.group(2)))