File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 11"""Tests for the Tools/i18n/msgfmt.py tool."""
22
33import json
4- import os
54import struct
65import sys
76import unittest
@@ -250,14 +249,14 @@ def test_general_syntax_errors(self):
250249 ('' , None ),
251250 ('"' , None ),
252251 ('""' , 'Syntax error on messages.po:1 before:' ),
253- ('"foo"' , f'Syntax error on messages.po:1 before:{ os . linesep } foo ' ),
252+ ('"foo"' , f'Syntax error on messages.po:1 before:\n foo ' ),
254253 # 'msgid', # invalid but currently accepted
255254 ('msgstr' , None ),
256255 ('msgid_plural' , 'msgid_plural not preceded by msgid on messages.po:1' ),
257256 # 'msgctxt', # invalid but currently accepted
258257 ('msgstr' , None ),
259258 ('msgstr[0]' , None ),
260- ('[0]' , f'Syntax error on messages.po:1 before:{ os . linesep } [0]' ),
259+ ('[0]' , f'Syntax error on messages.po:1 before:\n [0]' ),
261260 # unclosed string
262261 (
263262 dedent ('''\
You can’t perform that action at this time.
0 commit comments