https://github.com/python/cpython/commit/6870eb3f7322ed64a1ca8bbda5cf4e121e181b54
commit: 6870eb3f7322ed64a1ca8bbda5cf4e121e181b54
branch: main
author: Tomas R. <[email protected]>
committer: serhiy-storchaka <[email protected]>
date: 2024-10-27T18:09:08Z
summary:
gh-124295: Skip translation tests when pygettext is missing (GH-126051)
files:
M Lib/test/test_argparse.py
diff --git a/Lib/test/test_argparse.py b/Lib/test/test_argparse.py
index 06b616069c68ff..427e6bc6e7220c 100644
--- a/Lib/test/test_argparse.py
+++ b/Lib/test/test_argparse.py
@@ -27,6 +27,7 @@
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, '')
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3/lists/python-checkins.python.org/
Member address: [email protected]