Terry J. Reedy <tjre...@udel.edu> added the comment: Is there a reason to say (several times) 'can support' instead of just 'support'? Do the OSes in question just optionally support rather than always support?
The first version added: change 'depend of' to 'depend on'. In several functions you delete error checks: - if not (0 <= whence <= 2): - raise ValueError("invalid whence value") (or C equivalent). What happens with patch if invalid whence value is passed? Error from deeper in the call stack? Silently pass error, with no message? Could import of io create set of valid_whences for system? Then check would be "if whence not in valid_whences:" (or C equivalent). In 3.3, unittest has new mock submodule. Perhaps that would help testing. ---------- nosy: +terry.reedy _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue10142> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com