summaryrefslogtreecommitdiff
path: root/src/tox/execute
diff options
context:
space:
mode:
authorBernát Gábor <bgabor8@bloomberg.net>2021-02-09 09:30:36 +0000
committerGitHub <noreply@github.com>2021-02-09 09:30:36 +0000
commit36cdadba810c20c0b7af89029d7c1f0fa25cc12d (patch)
treefb1c1f64e0b135b0afccd6e4980f44a801e05273 /src/tox/execute
parent726271deba8242e76ee4dcacc6cc12190696bf25 (diff)
downloadtox-git-36cdadba810c20c0b7af89029d7c1f0fa25cc12d.tar.gz
Support running python 2 targets (#1900)
Diffstat (limited to 'src/tox/execute')
-rw-r--r--src/tox/execute/pep517_backend.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tox/execute/pep517_backend.py b/src/tox/execute/pep517_backend.py
index a9ccbc08..d865bfaf 100644
--- a/src/tox/execute/pep517_backend.py
+++ b/src/tox/execute/pep517_backend.py
@@ -1,4 +1,5 @@
"""A executor that reuses a single subprocess for all backend calls (saving on python startup/import overhead)"""
+import time
from pathlib import Path
from subprocess import TimeoutExpired
from threading import Lock
@@ -62,6 +63,7 @@ class LocalSubProcessPep517Executor(Execute):
)
self._exc = ToxBackendFailed(failure)
raise self._exc
+ time.sleep(0.01) # wait a short while for the output to populate
return self._local_execute
@staticmethod