(self)
| 3829 | self.check_decode_strings("surrogateescape") |
| 3830 | |
| 3831 | def test_decode_surrogatepass(self): |
| 3832 | try: |
| 3833 | self.decode(b'', 'surrogatepass') |
| 3834 | except ValueError as exc: |
| 3835 | if str(exc) == 'unsupported error handler': |
| 3836 | self.skipTest(f"{self.ENCODING!r} decoder doesn't support " |
| 3837 | f"surrogatepass error handler") |
| 3838 | else: |
| 3839 | raise |
| 3840 | |
| 3841 | self.check_decode_strings("surrogatepass") |
| 3842 | |
| 3843 | def test_decode_unsupported_error_handler(self): |
| 3844 | with self.assertRaises(ValueError) as cm: |
nothing calls this directly
no test coverage detected