summaryrefslogtreecommitdiffstats
path: root/bindings
diff options
context:
space:
mode:
authorSylvestre Ledru <sylvestre@debian.org>2018-12-13 17:39:02 +0000
committerSylvestre Ledru <sylvestre@debian.org>2018-12-13 17:39:02 +0000
commitd3e2d22ffb9de367c70e50b6c80e4e6d6f619e4d (patch)
tree5b5f69b54cd4025371c20571b59cd96ce1016266 /bindings
parent24639b1de1c13d33136f0eee96c907752f26e698 (diff)
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
Diffstat (limited to 'bindings')
-rw-r--r--bindings/python/tests/cindex/test_diagnostics.py2
1 files changed, 1 insertions, 1 deletions
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)