mirror of
https://github.com/python/cpython.git
synced 2025-11-01 22:21:35 +00:00
[3.14] gh-133677: Fix tests when running in non-UTF-8 locale (GH-133865) (GH-133938)
(cherry picked from commit 14305a83d3)
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
This commit is contained in:
parent
89c801b84e
commit
c11fc4bc96
6 changed files with 16 additions and 12 deletions
|
|
@ -6973,7 +6973,7 @@ def make_zip_script(self, script_name, name_in_zip=None):
|
|||
|
||||
def check_usage(self, expected, *args, **kwargs):
|
||||
res = script_helper.assert_python_ok('-Xutf8', *args, '-h', **kwargs)
|
||||
self.assertEqual(res.out.splitlines()[0].decode(),
|
||||
self.assertEqual(os.fsdecode(res.out.splitlines()[0]),
|
||||
f'usage: {expected} [-h]')
|
||||
|
||||
def test_script(self, compiled=False):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue