]> granicus.if.org Git - python/commitdiff
Issue #8600: fix test_gdb failures when gdb issues some spurious warnings.
authorAntoine Pitrou <solipsis@pitrou.net>
Wed, 5 May 2010 18:29:02 +0000 (18:29 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Wed, 5 May 2010 18:29:02 +0000 (18:29 +0000)
Lib/test/test_gdb.py

index 907d6ef7c08eeb749895fcbc2f035f0bbd9d54e2..388f24059e963b502be9593b31f0264422b08e98 100644 (file)
@@ -119,6 +119,11 @@ class DebuggerTests(unittest.TestCase):
 
         # Ignore some noise on stderr due to the pending breakpoint:
         err = err.replace('Function "%s" not defined.\n' % breakpoint, '')
+        # Ignore some other noise on stderr (http://bugs.python.org/issue8600)
+        err = err.replace("warning: Unable to find libthread_db matching"
+                          " inferior's thread library, thread debugging will"
+                          " not be available.\n",
+                          '')
 
         # Ensure no unexpected error messages:
         self.assertEquals(err, '')