mirror of
https://github.com/python/cpython.git
synced 2025-08-04 08:59:19 +00:00
gh-124295: Skip translation tests when pygettext is missing (GH-126051)
This commit is contained in:
parent
ed5059eeb1
commit
6870eb3f73
1 changed files with 2 additions and 0 deletions
|
@ -27,6 +27,7 @@ from test.support import import_helper
|
||||||
from test.support import os_helper
|
from test.support import os_helper
|
||||||
from test.support import requires_subprocess
|
from test.support import requires_subprocess
|
||||||
from test.support import script_helper
|
from test.support import script_helper
|
||||||
|
from test.test_tools import skip_if_missing
|
||||||
from unittest import mock
|
from unittest import mock
|
||||||
|
|
||||||
|
|
||||||
|
@ -7036,6 +7037,7 @@ class TestTranslations(unittest.TestCase):
|
||||||
|
|
||||||
def test_translations(self):
|
def test_translations(self):
|
||||||
# Test messages extracted from the argparse module against a snapshot
|
# Test messages extracted from the argparse module against a snapshot
|
||||||
|
skip_if_missing('i18n')
|
||||||
res = generate_po_file(stdout_only=False)
|
res = generate_po_file(stdout_only=False)
|
||||||
self.assertEqual(res.returncode, 0)
|
self.assertEqual(res.returncode, 0)
|
||||||
self.assertEqual(res.stderr, '')
|
self.assertEqual(res.stderr, '')
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue