Skip to content

Commit

Permalink
Revert "[Tests] Fix unhandled ProcessTerminated trying to kill daemon…
Browse files Browse the repository at this point in the history
… in clean"

This reverts commit 42accef.
  • Loading branch information
Lord-Kamina committed Jun 21, 2024
1 parent 4a7780c commit 416d4ca
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions deluge/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import pytest_twisted
from twisted.internet import reactor
from twisted.internet.defer import Deferred, maybeDeferred
from twisted.internet.error import CannotListenError, ProcessTerminated
from twisted.internet.error import CannotListenError
from twisted.python.failure import Failure

import deluge.component as _component
Expand Down Expand Up @@ -120,10 +120,7 @@ async def daemon(request, config_dir, tmp_path):
raise exception_error
daemon.listen_port = listen_port
yield daemon
try:
await daemon.kill()
except ProcessTerminated:
pass
await daemon.kill()


@pytest.fixture(autouse=True)
Expand Down

0 comments on commit 416d4ca

Please sign in to comment.