Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(83482)

Unified Diff: Lib/test/test_gdb.py

Issue 23670: Modifications to support iOS as a development platform
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Lib/test/test_gc.py ('k') | Lib/test/test_httpservers.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/test/test_gdb.py Tue Mar 01 10:26:10 2016 +0200
+++ b/Lib/test/test_gdb.py Wed Mar 02 00:01:35 2016 +0000
@@ -27,16 +27,18 @@ def get_gdb_version():
stdout=subprocess.PIPE,
universal_newlines=True)
with proc:
version = proc.communicate()[0]
except OSError:
# This is what "no gdb" looks like. There may, however, be other
# errors that manifest this way too.
raise unittest.SkipTest("Couldn't find gdb on the path")
+ except AttributeError:
+ raise unittest.SkipTest("subprocess module doesn't provide Popen()")
# 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
# '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)
if match is None:
« no previous file with comments | « Lib/test/test_gc.py ('k') | Lib/test/test_httpservers.py » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+