]> granicus.if.org Git - clang/commitdiff
Revert "Try to update the test to fix the breakage With the new warning, we are showi...
authorAdam Nemet <anemet@apple.com>
Fri, 14 Dec 2018 00:43:36 +0000 (00:43 +0000)
committerAdam Nemet <anemet@apple.com>
Fri, 14 Dec 2018 00:43:36 +0000 (00:43 +0000)
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

bindings/python/tests/cindex/test_diagnostics.py

index 248cf9456987b7701a92bfb01fda1836534e8d55..79d7a5fd411d22431db93861df7bf1d9ecdcdee5 100644 (file)
@@ -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)