We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 27e0114 commit e5e51bdCopy full SHA for e5e51bd
Lib/test/test_tools/test_i18n.py
@@ -162,6 +162,14 @@ def test_POT_Creation_Date(self):
162
# This will raise if the date format does not exactly match.
163
datetime.strptime(creationDate, '%Y-%m-%d %H:%M%z')
164
165
+ def test_output_option(self):
166
+ for opt in ('-o', '--output='):
167
+ with temp_cwd():
168
+ assert_python_ok(self.script, f'{opt}test')
169
+ self.assertTrue(os.path.exists('test'))
170
+ res = assert_python_ok(self.script, f'{opt}-')
171
+ self.assertIn(b'Project-Id-Version: PACKAGE VERSION', res.out)
172
+
173
def test_funcdocstring(self):
174
for doc in ('"""doc"""', "r'''doc'''", "R'doc'", 'u"doc"'):
175
with self.subTest(doc):
0 commit comments