bump version to 0.2.9
Release / build (push) Failing after 16m3s
Release / publish-pypi (push) Has been skipped
Release / release (push) Has been skipped

This commit is contained in:
2026-06-27 16:42:10 +08:00
parent 7fa97a01e3
commit 65dcbcbf62
9 changed files with 75 additions and 21 deletions
+6
View File
@@ -37,6 +37,12 @@ def test_spec_zero_timeout_rejected() -> None:
TaskSpec("a", _fn, timeout=0)
def test_spec_negative_timeout_rejected() -> None:
"""负数timeout应被拒绝。"""
with pytest.raises(ValueError, match="timeout"):
TaskSpec("a", _fn, timeout=-1.0)
def test_spec_self_dependency_rejected() -> None:
with pytest.raises(ValueError, match="depend on itself"):
TaskSpec("a", _fn, depends_on=("a",))