Vajrasky Kok added the comment: Here is the patch based on Claudiu's comment and Serhiy's commit (http://hg.python.org/cpython/rev/4b187f5aa960).
Claudiu (Thanks!!!), I can not apply two of your suggestions: "You could use support.import_module here in order to skip the test if pwd can't be imported." => It will skip the entire file if I do that which is bad for Windows. "You could use assertRaisesRegex." => I can not because assertRaisesRegex can not be used with "with" statement. ---------- Added file: http://bugs.python.org/file35683/add_unit_test_os_chown_v3.patch _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue20069> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com