def test_custom_completion_error():
 ip = get_ipython()
 class A(object, ):
  pass
 ip.user_ns['a'] = A()
 @complete_object.when_type(A)
 def complete_A(a, existing_completions):
  raise TypeError('this should be silenced')
 ip.complete('a.')

def test_custom_completion_error ( ) : ip = get_ipython ( ) class A ( object , ) : pass ip . user_ns [ 'a' ] = A ( ) @ complete_object . when_type ( A ) def complete_A ( a , existing_completions ) : raise TypeError ( 'this should be silenced' ) ip . complete ( 'a.' )
test that errors from custom attribute completers are silenced .