[all-commits] [llvm/llvm-project] 05d74d: python bindings: fix DeprecationWarning
Nick Desaulniers via All-commits
all-commits at lists.llvm.org
Mon Aug 10 15:25:56 PDT 2020
Branch: refs/heads/master
Home: https://github.com/llvm/llvm-project
Commit: 05d74dbc3bb1d943a029e4abea211288c920f559
https://github.com/llvm/llvm-project/commit/05d74dbc3bb1d943a029e4abea211288c920f559
Author: Nick Desaulniers <ndesaulniers at google.com>
Date: 2020-08-10 (Mon, 10 Aug 2020)
Changed paths:
M clang/bindings/python/tests/cindex/test_diagnostics.py
Log Message:
-----------
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
More information about the All-commits
mailing list