File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -14,11 +14,11 @@ class MiscSourceEncodingTest(unittest.TestCase):
14
14
15
15
def test_pep263 (self ):
16
16
self .assertEqual (
17
- "ðÉÔÏÎ" .encode ("utf-8" ),
17
+ "ðÉÔÏÎ" .encode ("utf-8" ),
18
18
b'\xd0 \x9f \xd0 \xb8 \xd1 \x82 \xd0 \xbe \xd0 \xbd '
19
19
)
20
20
self .assertEqual (
21
- "\ð" .encode ("utf-8" ),
21
+ "\ð" .encode ("utf-8" ),
22
22
b'\\ \xd0 \x9f '
23
23
)
24
24
@@ -251,8 +251,8 @@ def check(content):
251
251
# We want to assert that the python subprocess failed gracefully,
252
252
# not via a signal.
253
253
self .assertGreaterEqual (rc , 1 )
254
- self .assertTrue (b"Non-UTF-8 code starting with" in stderr )
255
- self .assertTrue (b"on line 5" in stderr )
254
+ self .assertIn (b"Non-UTF-8 code starting with" , stderr )
255
+ self .assertIn (b"on line 5" , stderr )
256
256
257
257
# continuation bytes in a sequence of 2, 3, or 4 bytes
258
258
continuation_bytes = [bytes ([x ]) for x in range (0x80 , 0xC0 )]
You can’t perform that action at this time.
0 commit comments