diff options
author | Zuul <zuul@review.opendev.org> | 2021-08-06 18:03:40 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2021-08-06 18:03:40 +0000 |
commit | 865ab44713db03deb8147925801c33a14eba16e3 (patch) | |
tree | 1897f1cd2110e049bbd5bdbe72289785b7fba74f | |
parent | b17176182129caf735cee9ef47466b3fb21aaeb8 (diff) | |
parent | 9b66f4066cfb78e3a2e40824b4f9d532f494b9a4 (diff) | |
download | cliff-865ab44713db03deb8147925801c33a14eba16e3.tar.gz |
Merge "Update unit test to satisfy python3.10+"
-rw-r--r-- | cliff/tests/test_help.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cliff/tests/test_help.py b/cliff/tests/test_help.py index 9034779..4862f25 100644 --- a/cliff/tests/test_help.py +++ b/cliff/tests/test_help.py @@ -101,7 +101,7 @@ class TestHelp(base.TestBase): help_text = stdout.getvalue() basecommand = os.path.split(sys.argv[0])[1] self.assertIn('usage: %s [--version]' % basecommand, help_text) - self.assertIn('optional arguments:\n --version', help_text) + self.assertRegex(help_text, 'option(s|al arguments):\n --version') expected = ( ' one Test command.\n' ' three word command Test command.\n' |