summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorJenkins <jenkins@review.openstack.org>2012-11-29 16:36:04 +0000
committerGerrit Code Review <review@openstack.org>2012-11-29 16:36:04 +0000
commitd8d9136f8e04d36545051b97c613ac57f6657555 (patch)
tree79ed538247cc8fcfeb216156da6d47b78a0b8cc3 /tests
parent582cb960066a02ae247097c8a96484655429fbe1 (diff)
parent21e1cd3c01675c2df38f2833ca1ca8edb6d399d1 (diff)
downloadoslo-d8d9136f8e04d36545051b97c613ac57f6657555.tar.gz
oslo-d8d9136f8e04d36545051b97c613ac57f6657555.tar.xz
oslo-d8d9136f8e04d36545051b97c613ac57f6657555.zip
Merge "Fix regression with cfg CLI arguments"
Diffstat (limited to 'tests')
-rw-r--r--tests/unit/test_cfg.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/unit/test_cfg.py b/tests/unit/test_cfg.py
index 644edca..feb0da1 100644
--- a/tests/unit/test_cfg.py
+++ b/tests/unit/test_cfg.py
@@ -1362,6 +1362,8 @@ class SadPathTestCase(BaseTestCase):
self.conf.register_cli_opt, StrOpt('foo'))
def test_bad_cli_arg(self):
+ self.conf.register_opt(BoolOpt('foo'))
+
self.stubs.Set(sys, 'stderr', StringIO.StringIO())
self.assertRaises(SystemExit, self.conf, ['--foo'])