HomePhabricator

python bindings: fix DeprecationWarning

Authored by nickdesaulniers on Aug 10 2020, 3:25 PM.

Description

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

Details

Committed
nickdesaulniersAug 10 2020, 3:25 PM
Reviewer
MaskRay
Differential Revision
D85692: python bindings: fix DeprecationWarning
Parents
rGfa5d22a045de: [OpenMP][NFC] Reuse OMPIRBuilder `struct ident_t` handling in Clang
Branches
Unknown
Tags
Unknown