'Regression test for https://aeon.stsci.edu/ssb/trac/pyfits/ticket/139'

def test_bool_column_update(self):

    c1 = fits.Column('F1', 'L', array=[True, False])
    c2 = fits.Column('F2', 'L', array=[False, True])
    thdu = fits.BinTableHDU.from_columns(fits.ColDefs([c1, c2]))
    thdu.writeto(self.temp('table.fits'))
    with fits.open(self.temp('table.fits'), mode='update') as hdul:
        hdul[1].data['F1'][1] = True
        hdul[1].data['F2'][0] = True
    with fits.open(self.temp('table.fits')) as hdul:
        assert (hdul[1].data['F1'] == [True, True]).all()
        assert (hdul[1].data['F2'] == [True, True]).all()
