[issue11306] mailbox should test for errno.EROFS

2011-03-03 Thread R. David Murray
R. David Murray added the comment: Committed to py3k in r88730, 3.2 in r88731, and 2.7 in r88732. I tested it by hand; mbox open failed before patch, succeeded (read-only) after patch. I also changed two other cases of EACCES tests without testing them; I don't see how it could hurt to add E

Re: [issue11306] mailbox should test for errno.EROFS

2011-02-28 Thread Senthil Kumaran
On Thu, Feb 24, 2011 at 03:07:10PM +, R. David Murray wrote: > Creating a test for this may not be practical :( Then should we just go ahead with this change as it seems reasonable one. -elif e.errno == errno.EACCES:

[issue11306] mailbox should test for errno.EROFS

2011-02-24 Thread R. David Murray
R. David Murray added the comment: Creating a test for this may not be practical :( -- assignee: -> r.david.murray nosy: +r.david.murray stage: -> needs patch ___ Python tracker _

[issue11306] mailbox should test for errno.EROFS

2011-02-23 Thread Matt Johnston
New submission from Matt Johnston : When opening mailboxes the module checks for errno.EACCES. This doesn't help if the location is mounted read-only. Something like the following (against Python 2.6) would fix it, there are a few other checks in mailbox.py for EACCES too. --- mailbox.py.orig