From d3e2d22ffb9de367c70e50b6c80e4e6d6f619e4d Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Thu, 13 Dec 2018 17:39:02 +0000 Subject: [PATCH] Try to update the test to fix the breakage With the new warning, we are showing one more output in the test. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@349064 91177308-0d34-0410-b5e6-96231b3b80d8 --- bindings/python/tests/cindex/test_diagnostics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/python/tests/cindex/test_diagnostics.py b/bindings/python/tests/cindex/test_diagnostics.py index 79d7a5fd41..248cf94569 100644 --- a/bindings/python/tests/cindex/test_diagnostics.py +++ b/bindings/python/tests/cindex/test_diagnostics.py @@ -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) -- 2.40.0