Message245584
From the current documentation and limited experience with the module, ReadError (or a subclass) sounds best. I would only expect OSError only for OS-level things, like file not found, disk error, etc.
The patches look good. One last suggestion is to use assertRaisesRegex, to be sure that you are getting exactly the exception you expect. Too many times I have found tests in the test suite that were completely broken, but happened to pass because the error happened to match the exception being tested. |
|
Date |
User |
Action |
Args |
2015-06-21 08:55:37 | martin.panter | set | recipients:
+ martin.panter, guettli, lars.gustaebel, ethan.furman, Thomas Güttler |
2015-06-21 08:55:37 | martin.panter | set | messageid: <1434876937.08.0.824254976223.issue24259@psf.upfronthosting.co.za> |
2015-06-21 08:55:37 | martin.panter | link | issue24259 messages |
2015-06-21 08:55:36 | martin.panter | create | |
|