diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2015-09-14 22:22:55 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2015-09-14 22:22:55 (GMT) |
commit | a578eb34ba2fdee441d085a88021b3f1544af98e (patch) | |
tree | 81a07ca6fe23188880a41d4cce3a636e642ffd6c | |
parent | 66ad8464cf7a89d21ea32a04bf1788d183b44ad0 (diff) | |
download | cpython-a578eb34ba2fdee441d085a88021b3f1544af98e.zip cpython-a578eb34ba2fdee441d085a88021b3f1544af98e.tar.gz cpython-a578eb34ba2fdee441d085a88021b3f1544af98e.tar.bz2 |
test_gdb: fix regex to parse the GDB version
Fix the regex to support the version 7.10: minor version with two digits
-rw-r--r-- | 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 index 915c90c..b5017b9 100644 --- a/Lib/test/test_gdb.py +++ b/Lib/test/test_gdb.py @@ -38,7 +38,7 @@ def get_gdb_version(): # '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))) |