diff options
author | Adam Nemet <anemet@apple.com> | 2018-12-14 00:43:36 +0000 |
---|---|---|
committer | Adam Nemet <anemet@apple.com> | 2018-12-14 00:43:36 +0000 |
commit | db2a2bc824742204d0b901604afd8a87f31a377b (patch) | |
tree | 24d7dbccb68a1c82c34ee0b9aed15c58a87bd6e5 /bindings | |
parent | b92c4a06a156c1711e0e59117f38431a54dbe914 (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
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@349118 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'bindings')
-rw-r--r-- | bindings/python/tests/cindex/test_diagnostics.py | 2 |
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 248cf94569..79d7a5fd41 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), 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) |