Skip to content

Commit c565d52

Browse files
Commit
1 parent 638e587 commit c565d52

2 files changed

Lines changed: 3 additions & 4 deletions

File tree

Lib/test/test_codecencodings_jp.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,6 @@ def test_null_terminator(self):
126126
self.assertEqual(encode_w_null_2.count(b'\x00'), 2)
127127
self.assertEqual(encode_w_null_2, encode_plus_null_2)
128128

129-
130129
class Test_SJISX0213(multibytecodec_support.TestBase, unittest.TestCase):
131130
encoding = 'shift_jisx0213'
132131
tstring = multibytecodec_support.load_teststring('shift_jisx0213')
@@ -142,6 +141,7 @@ class Test_SJISX0213(multibytecodec_support.TestBase, unittest.TestCase):
142141
"\xab\u211c\xbb = \u2329\u1234\u232a",
143142
b"\x85Gℜ\x85Q = ⟨ሴ⟩"
144143
)
144+
145145
def test_null_terminator(self):
146146
# see gh-101828
147147
cases = (
@@ -162,6 +162,5 @@ def test_null_terminator(self):
162162
self.assertEqual(encode_w_null_2.count(b'\x00'), 2)
163163
self.assertEqual(encode_w_null_2, encode_plus_null_2)
164164

165-
166165
if __name__ == "__main__":
167166
unittest.main()
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
Fix ``'shift_jisx0213'`` and ``'shift_jis_2004'`` codecs truncating null char
2-
as it was treated as part of a multi-character sequence.
1+
Fix ``'shift_jisx0213'`` and ``'shift_jis_2004'`` codecs truncating null chars
2+
as they were treated as part of multi-character sequences.

0 commit comments

Comments
 (0)