标签: python
我具有此测试功能:
def test_obtain_flux_data(flux_importer): data = flux_importer._download_flux_data() assert "&#" not in data
,测试将永远进行。然后,将最后一行更改为assert not "&#" in data,它在合理的时间执行。不应该一样吗?
assert not "&#" in data