bpo-14853: add back the stdin test, skip if stdin is redirected (GH-27694)

(cherry picked from commit 8ed183391241f0c73e7ba7f42b1d49fc02985f7b)

Co-authored-by: Irit Katriel <1055913+iritkatriel@users.noreply.github.com>
1 file changed