Skip to content

Commit 421272b

Browse files
Apply suggestions from code review
Co-authored-by: Stan Ulbrych <89152624+StanFromIreland@users.noreply.github.com>
1 parent 4d83cb7 commit 421272b

1 file changed

Lines changed: 4 additions & 8 deletions

File tree

Lib/test/test_tools/test_msgfmt.py

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -134,8 +134,7 @@ def test_nonexistent_file(self):
134134

135135

136136
class MultiInputTest(unittest.TestCase):
137-
"""Tests for the issue https://github.com/python/cpython/issues/79516
138-
msgfmt.py accepts multiple input files
137+
"""Tests for multiple input files
139138
"""
140139

141140
def test_no_outputfile(self):
@@ -161,8 +160,7 @@ def test_both_with_outputfile(self):
161160
data_dir / 'file1_fr_crlf.po',
162161
data_dir / 'file2_fr_lf.po')
163162
self.assertTrue(
164-
filecmp.cmp(data_dir / 'file12_fr.mo', 'file12.mo'),
165-
'Wrong compiled file12.mo')
163+
filecmp.cmp(data_dir / 'file12_fr.mo', 'file12.mo'))
166164

167165
def test_both_without_outputfile(self):
168166
"""Test script without -o option and 2 input files"""
@@ -172,11 +170,9 @@ def test_both_without_outputfile(self):
172170
shutil.copy(data_dir / 'file2_fr_lf.po', '.')
173171
assert_python_ok(msgfmt, 'file1_fr_crlf.po', 'file2_fr_lf.po')
174172
self.assertTrue(
175-
filecmp.cmp(data_dir / 'file1_fr_crlf.mo', 'file1_fr_crlf.mo'),
176-
'Wrong compiled file1_fr_crlf.mo')
173+
filecmp.cmp(data_dir / 'file1_fr_crlf.mo', 'file1_fr_crlf.mo'))
177174
self.assertTrue(
178-
filecmp.cmp(data_dir / 'file2_fr_lf.mo', 'file2_fr_lf.mo'),
179-
'Wrong compiled file2_fr_lf.mo')
175+
filecmp.cmp(data_dir / 'file2_fr_lf.mo', 'file2_fr_lf.mo'))
180176

181177

182178
def update_catalog_snapshots():

0 commit comments

Comments
 (0)