[issue9018] os.path.normcase(None) does not raise an error on linux and should

Senthil Kumaran orsenthil at gmail.com
Mon Jun 21 20:38:27 CEST 2010


On Sat, Jun 19, 2010 at 08:00:55PM +0000, Shashwat Anand wrote:
> Why on Mac OS X, it should return s.lower() ?

That is is because some file systems on Mac OS X are case-sensitive.

> def normcase(s):
>     """Normalize case of pathname.  Has no effect under Posix"""
>     if s is None:  
>         raise AttributeError
>     return s

It should be a TypeError, not AttributeError. (Attached Test cases
checks it properly)


More information about the Python-bugs-list mailing list