Python pytest testmon在写入结果期间失败,并出现TypeError

Python pytest testmon在写入结果期间失败,并出现TypeError,python,unit-testing,pytest,Python,Unit Testing,Pytest,为什么pytest--testmon会出现以下异常而失败 我正在使用python3.7,试图更改pytest testmon版本tp 1.0.2,但它也失败了似乎json datetime==0.0.5打破依赖关系testmon。这就足够了: import jsondatetime # comment this line and the exception will disappear: def test_something(): assert 1 == 1 版本1.0.2的testm

为什么
pytest--testmon
会出现以下异常而失败


我正在使用python3.7,试图更改pytest testmon版本tp 1.0.2,但它也失败了

似乎
json datetime==0.0.5
打破依赖关系
testmon
。这就足够了:

import jsondatetime  # comment this line and the exception will disappear:

def test_something():
  assert 1 == 1

版本1.0.2的testmon_core中的第160行,您确定跟踪是正确的吗?@hoefling抱歉,正在不同版本上测试。当前堆栈来自v0.9.19。但是1.0.2也有同样的错误啊,我明白了-你可以只在回购协议中复制还是通过任意测试(这是你的项目或
testmon
包中的测试的问题)?要尝试的第一件事是清除缓存:删除
.pytest\u缓存
目录和
.testmondata
数据库,然后重试。@即使在删除
.pytest\u缓存
.testmondata
并从文件夹中运行
pytest--testmon
后,hoefling仍然会失败,并出现相同的错误。看起来像是testmon的问题package@hoefling我发现问题,
testmon
在v0.0.5版本中被破解
pytest==5.3.5
pytest-watch==4.2.0
pytest-testmon==0.9.19
import jsondatetime  # comment this line and the exception will disappear:

def test_something():
  assert 1 == 1