python bindings: fix DeprecationWarning
authorNick Desaulniers <ndesaulniers@google.com>
Mon, 10 Aug 2020 22:25:20 +0000 (15:25 -0700)
committerNick Desaulniers <ndesaulniers@google.com>
Mon, 10 Aug 2020 22:25:23 +0000 (15:25 -0700)
commit05d74dbc3bb1d943a029e4abea211288c920f559
tree025a837007073ba321990916d04443e8fcd744d1
parentfa5d22a045de543b4df9eb5edfb8d70ce43bd13a
python bindings: fix DeprecationWarning

Fixes observed warning running `ninja check-all`:
llvm-project/clang/bindings/python/tests/cindex/test_diagnostics.py:100:
DeprecationWarning: Please use assertRegex instead.
  self.assertRegexpMatches(children[0].spelling

Looks like unittest.assertRegexpMatches has been deprecated in favor of
unittest.assertRegex since Python 3.2, according to:
https://docs.python.org/3/library/unittest.html#deprecated-aliases

Reviewed By: MaskRay

Differential Revision: https://reviews.llvm.org/D85692
clang/bindings/python/tests/cindex/test_diagnostics.py