summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--oslo_config/tests/test_cfg.py7
1 files changed, 1 insertions, 6 deletions
diff --git a/oslo_config/tests/test_cfg.py b/oslo_config/tests/test_cfg.py
index 0686eca..4c3db7e 100644
--- a/oslo_config/tests/test_cfg.py
+++ b/oslo_config/tests/test_cfg.py
@@ -821,12 +821,7 @@ class CliSpecialOptsTestCase(BaseTestCase):
self.assertIn('[--config-file PATH]', sys.stdout.getvalue())
def test_version(self):
- # In Python 3.4+, argparse prints the version on stdout; before 3.4, it
- # printed it on stderr.
- if sys.version_info >= (3, 4):
- stream_name = 'stdout'
- else:
- stream_name = 'stderr'
+ stream_name = 'stdout'
self.useFixture(fixtures.MonkeyPatch("sys.%s" % stream_name,
io.StringIO()))
self.assertRaises(SystemExit, self.conf, ['--version'])