Skip to content

Commit

Permalink
try fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
almarklein committed Jan 16, 2025
1 parent 970ea2c commit 44679ef
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions tests/testutils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import logging.handlers
import os
import time
import tempfile
from urllib.request import urlopen

Expand Down Expand Up @@ -47,8 +48,12 @@ def wrapper():


def get_ffmpeg_pids():
time.sleep(0.01)
pids = set()
for p in psutil.process_iter():
if "ffmpeg" in p.name().lower():
pids.add(p.pid)
try:
if "ffmpeg" in p.name().lower():
pids.add(p.pid)
except psutil.NoSuchProcess:
pass
return pids

0 comments on commit 44679ef

Please sign in to comment.