https://github.com/python/cpython/commit/d14a1b7a0dfc67dfc9f41a6fd1f1798a19e33737 commit: d14a1b7a0dfc67dfc9f41a6fd1f1798a19e33737 branch: 3.13 author: Miss Islington (bot) <31488909+miss-isling...@users.noreply.github.com> committer: serhiy-storchaka <storch...@gmail.com> date: 2025-05-09T07:56:58Z summary:
[3.13] gh-130197: Test pygettext --output option (GH-133041) (GH-133266) (cherry picked from commit e5e51bd7f72639be6548c806cc14ea53995bf1b3) Co-authored-by: Stan Ulbrych <89152624+stanfromirel...@users.noreply.github.com> files: M Lib/test/test_tools/test_i18n.py diff --git a/Lib/test/test_tools/test_i18n.py b/Lib/test/test_tools/test_i18n.py index ffa1b1178eddbc..0666f999b43207 100644 --- a/Lib/test/test_tools/test_i18n.py +++ b/Lib/test/test_tools/test_i18n.py @@ -149,6 +149,14 @@ def test_POT_Creation_Date(self): # This will raise if the date format does not exactly match. datetime.strptime(creationDate, '%Y-%m-%d %H:%M%z') + def test_output_option(self): + for opt in ('-o', '--output='): + with temp_cwd(): + assert_python_ok(self.script, f'{opt}test') + self.assertTrue(os.path.exists('test')) + res = assert_python_ok(self.script, f'{opt}-') + self.assertIn(b'Project-Id-Version: PACKAGE VERSION', res.out) + def test_funcdocstring(self): for doc in ('"""doc"""', "r'''doc'''", "R'doc'", 'u"doc"'): with self.subTest(doc): _______________________________________________ Python-checkins mailing list -- python-checkins@python.org To unsubscribe send an email to python-checkins-le...@python.org https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: arch...@mail-archive.com