mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-06-17 14:58:14 +00:00
switch to pytest_twisted
This commit is contained in:
@ -14,7 +14,7 @@ from allmydata.util.configutil import (
|
||||
write_config,
|
||||
)
|
||||
|
||||
import pytest
|
||||
import pytest_twisted
|
||||
|
||||
|
||||
class _ProcessExitedProtocol(ProcessProtocol):
|
||||
@ -127,7 +127,7 @@ def _run_node(reactor, node_dir, request, magic_text):
|
||||
def cleanup():
|
||||
try:
|
||||
process.signalProcess('TERM')
|
||||
pytest.blockon(protocol.exited)
|
||||
pytest_twisted.blockon(protocol.exited)
|
||||
except ProcessExitedAlready:
|
||||
pass
|
||||
request.addfinalizer(cleanup)
|
||||
|
Reference in New Issue
Block a user