summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_gdb.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2013-09-21 22:14:27 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2013-09-21 22:14:27 (GMT)
commita78cccb134d4438afa22fc6df532b5b9f888a8fa (patch)
treef4ab3477bb7f650dbe61154b59325ad1f4f7074b /Lib/test/test_gdb.py
parentd0f3e07a608ef10768f4b5a807b6ce2beb5b73a9 (diff)
downloadcpython-a78cccb134d4438afa22fc6df532b5b9f888a8fa.zip
cpython-a78cccb134d4438afa22fc6df532b5b9f888a8fa.tar.gz
cpython-a78cccb134d4438afa22fc6df532b5b9f888a8fa.tar.bz2
test_gdb: skip pretty-printing of sets with gdb < 7.3
(should fix the failures on OpenIndiana)
Diffstat (limited to 'Lib/test/test_gdb.py')
-rw-r--r--Lib/test/test_gdb.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_gdb.py b/Lib/test/test_gdb.py
index 5c573b2..8bd6797 100644
--- a/Lib/test/test_gdb.py
+++ b/Lib/test/test_gdb.py
@@ -309,6 +309,8 @@ class PrettyPrintTests(DebuggerTests):
def test_sets(self):
'Verify the pretty-printing of sets'
+ if (gdb_major_version, gdb_minor_version) < (7, 3):
+ self.skipTest("pretty-printing of sets needs gdb 7.3 or later")
self.assertGdbRepr(set())
self.assertGdbRepr(set(['a', 'b']), "{'a', 'b'}")
self.assertGdbRepr(set([4, 5, 6]), "{4, 5, 6}")
@@ -322,6 +324,8 @@ id(s)''')
def test_frozensets(self):
'Verify the pretty-printing of frozensets'
+ if (gdb_major_version, gdb_minor_version) < (7, 3):
+ self.skipTest("pretty-printing of frozensets needs gdb 7.3 or later")
self.assertGdbRepr(frozenset())
self.assertGdbRepr(frozenset(['a', 'b']), "frozenset({'a', 'b'})")
self.assertGdbRepr(frozenset([4, 5, 6]), "frozenset({4, 5, 6})")