aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2018-04-21 01:07:32 -0700
committerZac Medico <zmedico@gentoo.org>2018-04-22 11:30:53 -0700
commitaa6ae16b606c6ed177279f6ef03651c006ff051e (patch)
treef743a106e987e1c5b44673938a9eaacf19d43b4b /pym/portage/tests/ebuild
parentPackageUninstall: use async_lock (bug 614112) (diff)
downloadportage-aa6ae16b606c6ed177279f6ef03651c006ff051e.tar.gz
portage-aa6ae16b606c6ed177279f6ef03651c006ff051e.tar.bz2
portage-aa6ae16b606c6ed177279f6ef03651c006ff051e.zip
EbuildBuildDir: remove synchronous lock method (bug 614112)
The synchronous lock method can trigger event loop recursion if the event loop is already running, which is incompatible with asyncio's default event loop. Therefore, migrate the last consumers to use the async_lock method, and remove the synchronous lock method. Bug: https://bugs.gentoo.org/614112 Bug: https://bugs.gentoo.org/649588
Diffstat (limited to 'pym/portage/tests/ebuild')
-rw-r--r--pym/portage/tests/ebuild/test_ipc_daemon.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/tests/ebuild/test_ipc_daemon.py b/pym/portage/tests/ebuild/test_ipc_daemon.py
index b45177f7e..bc18cdf64 100644
--- a/pym/portage/tests/ebuild/test_ipc_daemon.py
+++ b/pym/portage/tests/ebuild/test_ipc_daemon.py
@@ -60,7 +60,7 @@ class IpcDaemonTestCase(TestCase):
build_dir = EbuildBuildDir(
scheduler=event_loop,
settings=env)
- build_dir.lock()
+ event_loop.run_until_complete(build_dir.async_lock())
ensure_dirs(env['PORTAGE_BUILDDIR'])
input_fifo = os.path.join(env['PORTAGE_BUILDDIR'], '.ipc_in')