(elem)
| 2186 | # marshaller gives obscure errors for non-string values |
| 2187 | |
| 2188 | def check(elem): |
| 2189 | with self.assertRaises(TypeError) as cm: |
| 2190 | serialize(elem) |
| 2191 | self.assertEqual(str(cm.exception), |
| 2192 | 'cannot serialize 123 (type int)') |
| 2193 | |
| 2194 | elem = ET.Element(123) |
| 2195 | check(elem) # tag |
nothing calls this directly
no test coverage detected