diff options
author | Paulo E. Castro <pecastro@wormholenet.com> | 2024-12-12 23:36:22 +0100 |
---|---|---|
committer | Paulo E. Castro <pecastro@wormholenet.com> | 2024-12-12 23:40:18 +0100 |
commit | 560d66e34edacef0bed3c44ff8a02be6f79b5fbe (patch) | |
tree | 6c1b16848c8c389d1577985fd2a8cbcda1652260 | |
parent | test/pybind: Clean whitespace. (diff) | |
download | ceph-560d66e34edacef0bed3c44ff8a02be6f79b5fbe.tar.xz ceph-560d66e34edacef0bed3c44ff8a02be6f79b5fbe.zip |
test/pybind: Test method has been renamed in unittest 3.2
Signed-off-by: Paulo E. Castro <pecastro@wormholenet.com>
-rwxr-xr-x | src/test/pybind/test_ceph_argparse.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/test/pybind/test_ceph_argparse.py b/src/test/pybind/test_ceph_argparse.py index 32c166ced2a..630e6046b24 100755 --- a/src/test/pybind/test_ceph_argparse.py +++ b/src/test/pybind/test_ceph_argparse.py @@ -217,7 +217,7 @@ class TestPG(TestArgparse): def test_pg_missing_args_output(self): ret, _, stderr = self._capture_output(['pg'], stderr=True) self.assertEqual({}, ret) - self.assertRegexpMatches(stderr, re.compile('no valid command found.* closest matches')) + self.assertRegex(stderr, re.compile('no valid command found.* closest matches')) def test_pg_wrong_arg_output(self): ret, _, stderr = self._capture_output(['pg', 'map', 'bad-pgid'], |