b218f78
--- Lib/test/test_gdb.py.old	2012-04-11 21:04:01.367073855 -0400
b218f78
+++ Lib/test/test_gdb.py	2012-04-12 08:52:58.320288761 -0400
b218f78
@@ -96,6 +96,15 @@ class DebuggerTests(unittest.TestCase):
b218f78
         # Generate a list of commands in gdb's language:
b218f78
         commands = ['set breakpoint pending yes',
b218f78
                     'break %s' % breakpoint,
b218f78
+
b218f78
+                    # GDB as of Fedora 17 onwards can distinguish between the
b218f78
+                    # value of a variable at entry vs current value:
b218f78
+                    #   http://sourceware.org/gdb/onlinedocs/gdb/Variables.html
b218f78
+                    # which leads to the selftests failing with errors like this:
b218f78
+                    #   AssertionError: 'v@entry=()' != '()'
b218f78
+                    # Disable this:
b218f78
+                    'set print entry-values no',
b218f78
+
b218f78
                     'run']
b218f78
         if cmds_after_breakpoint:
b218f78
             commands += cmds_after_breakpoint
b218f78
@@ -135,8 +144,16 @@ class DebuggerTests(unittest.TestCase):
b218f78
         err = err.replace("warning: Cannot initialize thread debugging"
b218f78
                           " library: Debugger service failed\n",
b218f78
                           '')
b218f78
+        err = '\n'.join([line
b218f78
+                         for line in err.splitlines()
b218f78
+                         if not line.startswith('warning: Unable to open')
b218f78
+                         if not line.startswith('Missing separate debuginfo for')
b218f78
+                         if not line.startswith('Try: yum --disablerepo=')
b218f78
+                         # In case 'set print entry-values no' failed:
b218f78
+                         if not line.startswith('Undefined set print command')])
b218f78
 
b218f78
         # Ensure no unexpected error messages:
b218f78
+        self.maxDiff = None
b218f78
         self.assertEqual(err, '')
b218f78
 
b218f78
         return out