summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPaulo E. Castro <pecastro@wormholenet.com>2024-12-12 23:36:22 +0100
committerPaulo E. Castro <pecastro@wormholenet.com>2024-12-12 23:40:18 +0100
commit560d66e34edacef0bed3c44ff8a02be6f79b5fbe (patch)
tree6c1b16848c8c389d1577985fd2a8cbcda1652260
parenttest/pybind: Clean whitespace. (diff)
downloadceph-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-xsrc/test/pybind/test_ceph_argparse.py2
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'],