feat: add blockbuster & fix docker

This commit is contained in:
Sun-ZhenXing
2026-04-20 15:54:10 +08:00
parent 7b4c336a57
commit 89a22d231c
8 changed files with 245 additions and 197 deletions
+9
View File
@@ -0,0 +1,9 @@
import time
import pytest
from blockbuster import BlockingError
async def test_time_sleep() -> None:
with pytest.raises(BlockingError):
time.sleep(0.1) # This should raise a BlockingError