Try to update the test to fix the breakage
authorSylvestre Ledru <sylvestre@debian.org>
Thu, 13 Dec 2018 17:39:02 +0000 (17:39 +0000)
committerSylvestre Ledru <sylvestre@debian.org>
Thu, 13 Dec 2018 17:39:02 +0000 (17:39 +0000)
With the new warning, we are showing one more output in the test.

llvm-svn: 349064

clang/bindings/python/tests/cindex/test_diagnostics.py

index 79d7a5f..248cf94 100644 (file)
@@ -15,7 +15,7 @@ import unittest
 class TestDiagnostics(unittest.TestCase):
     def test_diagnostic_warning(self):
         tu = get_tu('int f0() {}\n')
-        self.assertEqual(len(tu.diagnostics), 1)
+        self.assertEqual(len(tu.diagnostics), 2)
         self.assertEqual(tu.diagnostics[0].severity, Diagnostic.Warning)
         self.assertEqual(tu.diagnostics[0].location.line, 1)
         self.assertEqual(tu.diagnostics[0].location.column, 11)