Commits

C. Enrique Garcia Dabo authored e6a4f2ffc6c
Fix comparison of dd columns

Fixes partially CAS-12283

gcwrap/python/scripts/tests/test_split.py

Modified
2198 2198 self.assertEqual(inp_nrow, out_nrow)
2199 2199 self.assertEqual(dds.size, 64)
2200 2200
2201 2201 # Check that the data description column in the main table is unchanged.
2202 2202 mytbinp = tbtool()
2203 2203 mytbinp.open(self.vis)
2204 2204 ddcol_inp = mytbinp.getcol('DATA_DESC_ID')
2205 2205 mytbout = tbtool()
2206 2206 mytbout.open(self.outputms)
2207 2207 ddcol_out = mytbout.getcol('DATA_DESC_ID')
2208 - self.assertItemsEqual(ddcol_inp, ddcol_out)
2208 + self.assertTrue(ddcol_inp.tolist() == ddcol_out.tolist())
2209 2209
2210 2210 class splitUpdateFlagCmd(test_base):
2211 2211
2212 2212 def setUp(self):
2213 2213 self.datapath = '.'
2214 2214 self.setUp_flags()
2215 2215
2216 2216 def tearDown(self):
2217 2217 os.system('rm -rf '+ self.vis)
2218 2218 os.system('rm -rf '+ self.outputms)

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut