Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitd14a1b7

Browse files
[3.13]gh-130197: Test pygettext --output option (GH-133041) (GH-133266)
(cherry picked from commite5e51bd)Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
1 parent4c7a04b commitd14a1b7

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

‎Lib/test/test_tools/test_i18n.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -149,6 +149,14 @@ def test_POT_Creation_Date(self):
149149
# This will raise if the date format does not exactly match.
150150
datetime.strptime(creationDate,'%Y-%m-%d %H:%M%z')
151151

152+
deftest_output_option(self):
153+
foroptin ('-o','--output='):
154+
withtemp_cwd():
155+
assert_python_ok(self.script,f'{opt}test')
156+
self.assertTrue(os.path.exists('test'))
157+
res=assert_python_ok(self.script,f'{opt}-')
158+
self.assertIn(b'Project-Id-Version: PACKAGE VERSION',res.out)
159+
152160
deftest_funcdocstring(self):
153161
fordocin ('"""doc"""',"r'''doc'''","R'doc'",'u"doc"'):
154162
withself.subTest(doc):

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp