(elem)
| 2230 | # marshaller gives obscure errors for non-string values |
| 2231 | |
| 2232 | def check(elem): |
| 2233 | with self.assertRaises(TypeError) as cm: |
| 2234 | serialize(elem) |
| 2235 | self.assertEqual(str(cm.exception), |
| 2236 | 'cannot serialize 123 (type int)') |
| 2237 | |
| 2238 | elem = ET.Element(123) |
| 2239 | check(elem) # tag |
nothing calls this directly
no test coverage detected