]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-124295: Skip translation tests when pygettext is missing (GH-126051)
authorTomas R. <tomas.roun8@gmail.com>
Sun, 27 Oct 2024 18:09:08 +0000 (19:09 +0100)
committerGitHub <noreply@github.com>
Sun, 27 Oct 2024 18:09:08 +0000 (18:09 +0000)
Lib/test/test_argparse.py

index 06b616069c68ff71f35bd5f47bf03776eee5abf1..427e6bc6e7220c8cd38e50b44ea04b20c15e3352 100644 (file)
@@ -27,6 +27,7 @@ from test.support import import_helper
 from test.support import os_helper
 from test.support import requires_subprocess
 from test.support import script_helper
+from test.test_tools import skip_if_missing
 from unittest import mock
 
 
@@ -7036,6 +7037,7 @@ class TestTranslations(unittest.TestCase):
 
     def test_translations(self):
         # Test messages extracted from the argparse module against a snapshot
+        skip_if_missing('i18n')
         res = generate_po_file(stdout_only=False)
         self.assertEqual(res.returncode, 0)
         self.assertEqual(res.stderr, '')