added AttributeError to list of expected exceptions for fd_stdout_capturing
@@ -108,7 +108,7 @@ def tee_output_fd():
tee_stderr = subprocess.Popen(
['tee', '-a', '/dev/stderr'], preexec_fn=os.setsid,
stdin=subprocess.PIPE, stderr=target_fd, stdout=2)
- except (FileNotFoundError, OSError):
+ except (FileNotFoundError, (OSError, AttributeError)):
# No tee found in this operating system. Trying to use a python
# implementation of tee. However this is slow and error-prone.
tee_stdout = subprocess.Popen(
