Skip to content

Commit

Permalink
Update test_process.py
Browse files Browse the repository at this point in the history
  • Loading branch information
mayeut committed Jul 30, 2023
1 parent 9e61013 commit 5c067aa
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions psutil/tests/test_process.py
Original file line number Diff line number Diff line change
Expand Up @@ -1060,6 +1060,7 @@ def test_num_ctx_switches(self):
p = psutil.Process()
before = sum(p.num_ctx_switches())
for _ in range(1000000):
time.sleep(0.05)
after = sum(p.num_ctx_switches())
if after > before:
return
Expand Down

0 comments on commit 5c067aa

Please sign in to comment.