Serhiy Storchaka added the comment:

There is a problem with test_pwd on 64-bit platform. It expects KeyError on 
pwd.getpwuid(sys.maxsize). Actually the test is not looks robust. On 32-bit 
platform sys.maxsize = 2**31-1 < 2**32 and this value only by chance was not in 
the user database. On 64-bit platform sys.maxsize > 2**32 and in old code it 
was wrapped to 2**31-1 C unsigned int value and this value only by chance was 
not in the user database. New code doesn't wrap the value to C unsigned int and 
raises an overflow exception.

What should I change, a test or a raised exception?

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue4591>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to