Serhiy Storchaka added the comment:
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', '')
----------
nosy: +serhiy.storchaka
_______________________________________
Python tracker <[email protected]>
<http://bugs.python.org/issue16630>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe:
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com