/usr/lib/python3/dist-packages/pyutilib/subprocess/tests/tee_script.py is in python3-pyutilib 5.3.5-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 | import sys
import time
# Write ERR first so that the output is deterministic
sys.stderr.write("Tee Script: ERR\n")
sys.stdout.write("Tee Script: OUT\n")
# sleep just enough so tha the STDERR thread should finish flushing its
# buffer before the process terminates (at which point the order in
# which the buffers are flushed is somewhat random).
time.sleep(0.5)
|