Skip to content

Commit c7251e6

Browse files
tomasr8picnixz
authored andcommitted
pythongh-124295: Skip translation tests when pygettext is missing (pythonGH-126051)
1 parent e7c0b0a commit c7251e6

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/test/test_argparse.py

+2
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
from test.support import os_helper
2828
from test.support import requires_subprocess
2929
from test.support import script_helper
30+
from test.test_tools import skip_if_missing
3031
from unittest import mock
3132

3233

@@ -7036,6 +7037,7 @@ class TestTranslations(unittest.TestCase):
70367037

70377038
def test_translations(self):
70387039
# Test messages extracted from the argparse module against a snapshot
7040+
skip_if_missing('i18n')
70397041
res = generate_po_file(stdout_only=False)
70407042
self.assertEqual(res.returncode, 0)
70417043
self.assertEqual(res.stderr, '')

0 commit comments

Comments
 (0)