aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2018-04-20 08:21:58 -0700
committerZac Medico <zmedico@gentoo.org>2018-04-20 08:50:43 -0700
commit90fa156df0e6ef4fa9ef1a80c495511f4630de86 (patch)
tree0fffe1d9e22ebf6a8041b4238a63dfa0caa420f7 /pym/portage/tests/ebuild/test_ipc_daemon.py
parentAbstractEbuildProcess: use async_unlock (bug 614108) (diff)
downloadportage-90fa156df0e6ef4fa9ef1a80c495511f4630de86.tar.gz
portage-90fa156df0e6ef4fa9ef1a80c495511f4630de86.tar.bz2
portage-90fa156df0e6ef4fa9ef1a80c495511f4630de86.zip
EbuildBuildDir: remove synchronous unlock method (bug 614108)
The synchronous unlock 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_unlock method, and remove the synchronous unlock method. Bug: https://bugs.gentoo.org/614108 Bug: https://bugs.gentoo.org/649588
Diffstat (limited to 'pym/portage/tests/ebuild/test_ipc_daemon.py')
-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 1152f31b4..b45177f7e 100644
--- a/pym/portage/tests/ebuild/test_ipc_daemon.py
+++ b/pym/portage/tests/ebuild/test_ipc_daemon.py
@@ -137,7 +137,7 @@ class IpcDaemonTestCase(TestCase):
finally:
if build_dir is not None:
- build_dir.unlock()
+ event_loop.run_until_complete(build_dir.async_unlock())
shutil.rmtree(tmpdir)
def _timeout_callback(self, task_scheduler):