(func, *args, **kwargs)
| 338 | def test_nN_code(self): |
| 339 | # n and N don't exist in standard sizes |
| 340 | def assertStructError(func, *args, **kwargs): |
| 341 | with self.assertRaises(struct.error) as cm: |
| 342 | func(*args, **kwargs) |
| 343 | self.assertIn("bad char in struct format", str(cm.exception)) |
| 344 | for code in 'nN': |
| 345 | for byteorder in ('=', '<', '>', '!'): |
| 346 | format = byteorder+code |
nothing calls this directly
no test coverage detected