Message177076
1. rpcclt.remotecall also can raise an exception.
2. I think fetch_tip() should return '' in case of exception as for non-existent arguments or for non-callables. You can add tests for this cases too.
3. "break" is a reserved word. It's not a good name for an attribute.
4. It will be better test for exception an instance of the special class and not break TC.
class Broken:
def __getattr__(self, name):
raise Exception('Broken __getattr__')
brocken = Broken()
test('brocken', '') |
|
Date |
User |
Action |
Args |
2012-12-07 10:02:51 | serhiy.storchaka | set | recipients:
+ serhiy.storchaka, terry.reedy, roger.serwy |
2012-12-07 10:02:51 | serhiy.storchaka | set | messageid: <1354874571.82.0.424292740583.issue16630@psf.upfronthosting.co.za> |
2012-12-07 10:02:51 | serhiy.storchaka | link | issue16630 messages |
2012-12-07 10:02:51 | serhiy.storchaka | create | |
|