We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3d60ff7 commit 5cc57adCopy full SHA for 5cc57ad
Lib/test/test_source_encoding.py
@@ -251,8 +251,8 @@ def check(content):
251
# We want to assert that the python subprocess failed gracefully,
252
# not via a signal.
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)
+ self.assertIn(b"Non-UTF-8 code starting with", stderr)
+ self.assertIn(b"on line 5", stderr)
256
257
# continuation bytes in a sequence of 2, 3, or 4 bytes
258
continuation_bytes = [bytes([x]) for x in range(0x80, 0xC0)]
0 commit comments