Skip to content

Commit d63c994

Browse files
gh-130197: Test pygettext's --version CLI option (#133022)
1 parent a700732 commit d63c994

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

Lib/test/test_tools/test_i18n.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -427,6 +427,11 @@ def test_help_text(self):
427427
self.assertEqual(res.out, b'')
428428
self.assertIn(b'pygettext -- Python equivalent of xgettext(1)', res.err)
429429

430+
def test_version_text(self):
431+
"""Test that the version text is displayed."""
432+
res = assert_python_ok(self.script, '--version')
433+
self.assertIn(b'pygettext.py (xgettext for Python) 1.5', res.out)
434+
430435
def test_error_messages(self):
431436
"""Test that pygettext outputs error messages to stderr."""
432437
stderr = self.get_stderr(dedent('''\

0 commit comments

Comments
 (0)