(self, s)
| 4470 | self.assertIsInstance(ET.ParseError(), SyntaxError) |
| 4471 | |
| 4472 | def _get_error(self, s): |
| 4473 | try: |
| 4474 | ET.fromstring(s) |
| 4475 | except ET.ParseError as e: |
| 4476 | return e |
| 4477 | |
| 4478 | def test_error_position(self): |
| 4479 | self.assertEqual(self._get_error('foo').position, (1, 0)) |
no test coverage detected