最佳答案
Python 的 pytest
允许:
-
pytest.skip("unsupported configuration")
xfail
for tests which are expected to fail ,例如:pytest.xfail("waiting for foo to be fixed")
关于Python 相当于 ruby rspec 的 "skip"和 "pending",我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/47304655/