chevah/compat — pull request #28 by adiroiban (2014-03-19 20:06:20+00:00)
Title: [#2052] Only raies OSError from deleteFile

Description
---------------

chevah.compat should never raise WindowsError as WindowsError are only specific to Windows and we can not handle them (import them) on Unix.

Changes
-----------

deleteFile in Windows was updated to catch all OSError types (including WindowsError) and re-raise them as OSError. It also patches an error code for file not found.

For now this focus on deleteFile. If we found other methods which raise WindowsError we will create a new branch.

How to test
--------------

reviewers: @alibotean

Check that code make sense.

Thanks!