@pytest.mark.skipif('not HAS_PATHLIB')
def test_votable_path_object():
 fpath = pathlib.Path(get_pkg_data_filename('data/names.xml'))
 table = parse(fpath).get_first_table().to_table()
 assert (len(table) == 1)
 assert (int(table[0][3]) == 266)

@ pytest . mark . skipif ( 'not HAS_PATHLIB' ) def test_votable_path_object ( ) : fpath = pathlib . Path ( get_pkg_data_filename ( 'data/names.xml' ) ) table = parse ( fpath ) . get_first_table ( ) . to_table ( ) assert ( len ( table ) == 1 ) assert ( int ( table [ 0 ] [ 3 ] ) == 266 )
testing when votable is passed as pathlib .