Skip to content

Commit

Permalink
Fix type errors
Browse files Browse the repository at this point in the history
  • Loading branch information
A5rocks committed Feb 5, 2025
1 parent 0c2996a commit 821a636
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/trio/_core/_tests/test_thread_cache.py
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ def deliver(_: object) -> NoReturn:

@pytest.mark.skipif(not hasattr(os, "fork"), reason="os.fork isn't supported")
def test_clear_thread_cache_after_fork() -> None:
assert hasattr(os, "fork")

def foo() -> None:
pass

Expand All @@ -217,4 +219,4 @@ def foo() -> None:

if child_pid != 0:
# if this test fails, this will hang, triggering a timeout.
os.wait4(child_pid, 0)
os.waitpid(child_pid, 0)

0 comments on commit 821a636

Please sign in to comment.