Skip to content

Commit

Permalink
pythongh-124295: Skip translation tests when pygettext is missing (py…
Browse files Browse the repository at this point in the history
  • Loading branch information
tomasr8 authored and serhiy-storchaka committed Oct 27, 2024
1 parent 8d684a7 commit 3dc37c6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Lib/test/test_argparse.py
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,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


Expand Down Expand Up @@ -6777,6 +6778,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, '')
Expand Down

0 comments on commit 3dc37c6

Please sign in to comment.