|
7 | 7 | from textwrap import dedent |
8 | 8 | from pathlib import Path |
9 | 9 |
|
10 | | -from test.support.script_helper import (assert_python_failure, |
11 | | - assert_python_ok, |
12 | | - run_python_until_end) |
| 10 | +from test.support.script_helper import assert_python_failure, assert_python_ok |
13 | 11 | from test.test_tools import imports_under_tool, skip_if_missing, toolsdir |
14 | 12 | from test.support.os_helper import temp_cwd, temp_dir |
15 | 13 |
|
@@ -182,15 +180,9 @@ def test_no_input_file(self): |
182 | 180 | res = assert_python_failure('-Xutf8', self.script, *args) |
183 | 181 | self.assertEqual(res.rc, 1) |
184 | 182 | self.assertEqual(res.out, b'') |
185 | | - self.assertIn(b'pygettext: no input file given', res.err) |
| 183 | + self.assertIn(b'No input file given', res.err) |
186 | 184 | self.assertFalse(os.path.exists('messages.pot')) |
187 | 185 |
|
188 | | - def test_missing_input_file_is_not_no_input(self): |
189 | | - # A path that matches nothing is not the same as no path at all. |
190 | | - with temp_cwd(None): |
191 | | - res, _ = run_python_until_end(self.script, 'does_not_exist.py') |
192 | | - self.assertNotIn(b'no input file given', res.err) |
193 | | - |
194 | 186 | def test_funcdocstring(self): |
195 | 187 | for doc in ('"""doc"""', "r'''doc'''", "R'doc'", 'u"doc"'): |
196 | 188 | with self.subTest(doc): |
|
0 commit comments