bpo-34182: Fix test_pydoc running as a script. (GH-8389)

(cherry picked from commit 4e11c461ed39085b8495a35c9367b46d8a0d306d)

Co-authored-by: Bo Bayles <bbayles@gmail.com>
1 file changed