@pytest.mark.skipif('not HAS_BEAUTIFUL_SOUP')
def test_multicolumn_read():
 table = Table.read('t/html2.html', format='ascii.html')
 str_type = np.dtype((np.str, 21))
 expected = Table(np.array([(['1', '2.5000000000000000001'], 3), (['1a', '1'], 3.5)], dtype=[('A', str_type, (2,)), ('B', '<f8')]))
 assert np.all((table == expected))

@ pytest . mark . skipif ( 'not HAS_BEAUTIFUL_SOUP' ) def test_multicolumn_read ( ) : table = Table . read ( 't/html2.html' , format = 'ascii.html' ) str_type = np . dtype ( ( np . str , 21 ) ) expected = Table ( np . array ( [ ( [ '1' , '2.5000000000000000001' ] , 3 ) , ( [ '1a' , '1' ] , 3.5 ) ] , dtype = [ ( 'A' , str_type , ( 2 , ) ) , ( 'B' , '<f8' ) ] ) ) assert np . all ( ( table == expected ) )
test to make sure that the html reader inputs multidimensional columns using the colspan attribute of <th> .