We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4c7a04b commit d14a1b7Copy full SHA for d14a1b7
Lib/test/test_tools/test_i18n.py
@@ -149,6 +149,14 @@ def test_POT_Creation_Date(self):
149
# This will raise if the date format does not exactly match.
150
datetime.strptime(creationDate, '%Y-%m-%d %H:%M%z')
151
152
+ def test_output_option(self):
153
+ for opt in ('-o', '--output='):
154
+ with temp_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
+
160
def test_funcdocstring(self):
161
for doc in ('"""doc"""', "r'''doc'''", "R'doc'", 'u"doc"'):
162
with self.subTest(doc):
0 commit comments