summaryrefslogtreecommitdiff
path: root/clang/bindings
diff options
context:
space:
mode:
authorAdam Nemet <anemet@apple.com>2018-12-14 00:43:36 +0000
committerAdam Nemet <anemet@apple.com>2018-12-14 00:43:36 +0000
commit396c0be6a757c7726324dec7508401f424028d43 (patch)
tree6ef86a189603dc0f730ca6f99711ca39e7217d24 /clang/bindings
parente4c17179aab8d6876f2df8776dd71e5e0cece01c (diff)
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
Diffstat (limited to 'clang/bindings')
-rw-r--r--clang/bindings/python/tests/cindex/test_diagnostics.py2
1 files changed, 1 insertions, 1 deletions
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)