In order to detect thread-unsafe tests we do parse the test source code and analyze the AST, for which we call inspect.getsource and ast.parse. Both of these can fail (see for example #88), so it'd be best to report tests where they have indeed failed to make reporting issues easier.