def test_replace_update_column_via_setitem_warnings_refcount():
 t = table.Table([[1, 2, 3], [4, 5, 6]], names=['a', 'b'])
 ta = t['a']
 with catch_warnings() as w:
  with table.conf.set_temp('replace_warnings', ['refcount', 'attributes', 'slice']):
   t['a'] = [10, 20, 30]
  assert (len(w) == 1)
  assert ("replaced column 'a' and the number of references" in str(w[0].message))

def test_replace_update_column_via_setitem_warnings_refcount ( ) : t = table . Table ( [ [ 1 , 2 , 3 ] , [ 4 , 5 , 6 ] ] , names = [ 'a' , 'b' ] ) ta = t [ 'a' ] with catch_warnings ( ) as w : with table . conf . set_temp ( 'replace_warnings' , [ 'refcount' , 'attributes' , 'slice' ] ) : t [ 'a' ] = [ 10 , 20 , 30 ] assert ( len ( w ) == 1 ) assert ( "replaced column 'a' and the number of references" in str ( w [ 0 ] . message ) )
test warnings related to table replace change in #5556: reference count changes .