scipy/scipy — pull request #3708 by anntzer (2014-06-04 09:52:03+00:00)
Title: Reraise exception on failure to read mat file.

When loadmat cannot even open the requested file, rethrow the exception
raised by (the first) open() (which could be FileNotFoundError or
PermissionError) rather than wrap it in OSError.

Fixes #3700.