diff options
| author | Paolo Bonzini <pbonzini@redhat.com> | 2020-10-15 12:32:46 +0200 |
|---|---|---|
| committer | Paolo Bonzini <pbonzini@redhat.com> | 2020-11-15 14:12:43 +0100 |
| commit | 09253c1c70a2c8946be5be0a0f86fd21461ef598 (patch) | |
| tree | a0091d6081c36682ef9e80ce889411bdd9b8ca95 | |
| parent | cdbb0255a76c2e622f561d72c04bfcb1fc67513a (diff) | |
| download | meson-09253c1c70a2c8946be5be0a0f86fd21461ef598.tar.gz | |
mtest: use ProactorEventLoop
This is needed to use asyncio with pipes and processes.
| -rw-r--r-- | mesonbuild/mtest.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/mesonbuild/mtest.py b/mesonbuild/mtest.py index 91c872f07..6e4ac6ef1 100644 --- a/mesonbuild/mtest.py +++ b/mesonbuild/mtest.py @@ -1329,6 +1329,10 @@ def run(options: argparse.Namespace) -> int: if options.wrapper: check_bin = options.wrapper[0] + if sys.platform == 'win32': + loop = asyncio.ProactorEventLoop() + asyncio.set_event_loop(loop) + if check_bin is not None: exe = ExternalProgram(check_bin, silent=True) if not exe.found(): |
