Skip to content

Commit cfa4d46

Browse files
Commit
1 parent 2cd7ea5 commit cfa4d46

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

Lib/test/test_tools/test_i18n.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -596,7 +596,12 @@ def test_utf8_encoding(self):
596596
with open('test.py', 'w', encoding='utf-8') as fp:
597597
fp.write('_("áscii")')
598598

599-
res = assert_python_ok(self.script, 'test.py', PYTHONCOERCECLOCALE="0", PYTHONUTF8="0", PYTHONIOENCODING="ascii", LANG="C", LC_ALL="C")
599+
res = assert_python_ok(self.script,
600+
'test.py',
601+
PYTHONCOERCECLOCALE="0",
602+
PYTHONUTF8="0",
603+
LANG="C",
604+
LC_ALL="C")
600605
self.assertEqual(res.err, b'')
601606

602607
with open('messages.pot', encoding='utf-8') as fp:
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
:program:`pygettext`: open files with the uft-8 encoding

0 commit comments

Comments
 (0)