我对python代码和运行命令pytest --cov
进行了单元测试,测试运行良好,但没有显示覆盖率并且错误是
INTERNALERROR>raise CoverageException("Couldn't use data file {!r}:{}".format(self.filename, msg))
INTERNALERROR> coverage.misc.CoverageException: Couldn't use data file'C:\\Users\\Desktop\\Pytest\\.coverage': Safety level may not be changed inside a transaction
需要帮助解决这个问题?