MCPcopy Index your code
hub / github.com/python/cpython / test_po_with_bom

Method test_po_with_bom

Lib/test/test_tools/test_msgfmt.py:94–100  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

92 '%d emails sent.')
93
94 def test_po_with_bom(self):
95 with temp_cwd():
96 Path('bom.po').write_bytes(b'\xef\xbb\xbfmsgid "Python"\nmsgstr "Pioton"\n')
97
98 res = assert_python_failure(msgfmt_py, 'bom.po')
99 err = res.err.decode('utf-8')
100 self.assertIn('The file bom.po starts with a UTF-8 BOM', err)
101
102 def test_invalid_msgid_plural(self):
103 with temp_cwd():

Callers

nothing calls this directly

Calls 6

temp_cwdFunction · 0.90
PathClass · 0.90
assert_python_failureFunction · 0.90
assertInMethod · 0.80
write_bytesMethod · 0.45
decodeMethod · 0.45

Tested by

no test coverage detected