[Python-checkins] cpython (3.4): test_gdb: fix regex to parse the GDB version
victor.stinner
python-checkins at python.org
Tue Sep 15 00:25:55 CEST 2015
https://hg.python.org/cpython/rev/6a8aa246485e
changeset: 98001:6a8aa246485e
branch: 3.4
parent: 97991:5e7f9c8098d3
user: Victor Stinner <victor.stinner at gmail.com>
date: Tue Sep 15 00:22:55 2015 +0200
summary:
test_gdb: fix regex to parse the GDB version
Fix the regex to support the version 7.10: minor version with two digits
files:
Lib/test/test_gdb.py | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/Lib/test/test_gdb.py b/Lib/test/test_gdb.py
--- a/Lib/test/test_gdb.py
+++ b/Lib/test/test_gdb.py
@@ -38,7 +38,7 @@
# 'GNU gdb (GDB) Fedora 7.9.1-17.fc22\n' -> 7.9
# 'GNU gdb 6.1.1 [FreeBSD]\n' -> 6.1
# 'GNU gdb (GDB) Fedora (7.5.1-37.fc18)\n' -> 7.5
- match = re.search(r"^GNU gdb.*?\b(\d+)\.(\d)", version)
+ match = re.search(r"^GNU gdb.*?\b(\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)))
--
Repository URL: https://hg.python.org/cpython
More information about the Python-checkins
mailing list