def test_replace_update_column_via_setitem_warnings_normal():
 t = table.Table([[1, 2, 3], [4, 5, 6]], names=['a', 'b'])
 with catch_warnings() as w:
  with table.conf.set_temp('replace_warnings', ['refcount', 'attributes', 'slice']):
   t['a'] = 0
   assert (len(w) == 0)
   t['a'] = [10, 20, 30]
   assert (len(w) == 0)

def test_replace_update_column_via_setitem_warnings_normal ( ) : t = table . Table ( [ [ 1 , 2 , 3 ] , [ 4 , 5 , 6 ] ] , names = [ 'a' , 'b' ] ) with catch_warnings ( ) as w : with table . conf . set_temp ( 'replace_warnings' , [ 'refcount' , 'attributes' , 'slice' ] ) : t [ 'a' ] = 0 assert ( len ( w ) == 0 ) t [ 'a' ] = [ 10 , 20 , 30 ] assert ( len ( w ) == 0 )
test warnings related to table replace change in #5556: normal warning-free replace .