When a subtest references an object, it breaks the XML generation at this point: https://github.com/xmlrunner/unittest-xml-reporting/blob/e8a337c2597a4124f290feb28b2eeb3991c93567/xmlrunner/result.py#L520