Vajrasky Kok added the comment: Attached the patch based on Serhiy's suggestion. ---------- Added file: http://bugs.python.org/file32376/fix_test_pydoc_with_S_flag_v2.patch _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue19397> _______________________________________