(input, expected, msg)
| 1177 | br'\x5': (b'x\\', 1), |
| 1178 | } |
| 1179 | def check(input, expected, msg): |
| 1180 | with self.assertWarns(DeprecationWarning) as cm: |
| 1181 | self.assertEqual(decode(input, 'test.mutating2'), (expected, len(input))) |
| 1182 | self.assertIn(msg, str(cm.warning)) |
| 1183 | |
| 1184 | check(br'\x0n\z', '\u0404\n\\z', r'"\z" is an invalid escape sequence') |
| 1185 | check(br'\x0n\501', '\u0404\n\u0141', r'"\501" is an invalid octal escape sequence') |
nothing calls this directly
no test coverage detected