From 396c0be6a757c7726324dec7508401f424028d43 Mon Sep 17 00:00:00 2001 From: Adam Nemet Date: Fri, 14 Dec 2018 00:43:36 +0000 Subject: Revert "Try to update the test to fix the breakage With the new warning, we are showing one more output in the test." This reverts commit r349064. This wasn't updating the right test. Causing (not the different line number from the previous revert): ====================================================================== FAIL: test_diagnostic_warning (tests.cindex.test_diagnostics.TestDiagnostics) ---------------------------------------------------------------------- Traceback (most recent call last): File "/Users/buildslave/jenkins/workspace/clang-stage1-configure-RA/llvm/tools/clang/bindings/python/tests/cindex/test_diagnostics.py", line 18, in test_diagnostic_warning self.assertEqual(len(tu.diagnostics), 2) AssertionError: 1 != 2 --- clang/bindings/python/tests/cindex/test_diagnostics.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'clang/bindings') diff --git a/clang/bindings/python/tests/cindex/test_diagnostics.py b/clang/bindings/python/tests/cindex/test_diagnostics.py index 248cf945698..79d7a5fd411 100644 --- a/clang/bindings/python/tests/cindex/test_diagnostics.py +++ b/clang/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), 2) + self.assertEqual(len(tu.diagnostics), 1) self.assertEqual(tu.diagnostics[0].severity, Diagnostic.Warning) self.assertEqual(tu.diagnostics[0].location.line, 1) self.assertEqual(tu.diagnostics[0].location.column, 11) -- cgit v1.2.3