From a78cccb134d4438afa22fc6df532b5b9f888a8fa Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Sun, 22 Sep 2013 00:14:27 +0200 Subject: [PATCH] test_gdb: skip pretty-printing of sets with gdb < 7.3 (should fix the failures on OpenIndiana) --- Lib/test/test_gdb.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Lib/test/test_gdb.py b/Lib/test/test_gdb.py index 5c573b2f3a5..8bd6797eb03 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})")