@pytest.mark.parametrize('fast_writer', [True, False])
def test_byte_string_output(fast_writer):
 t = table.Table([['Hello', 'World']], dtype=['S10'])
 out = StringIO()
 ascii.write(t, out, fast_writer=fast_writer)
 assert (out.getvalue().splitlines() == ['col0', 'Hello', 'World'])

@ pytest . mark . parametrize ( 'fast_writer' , [ True , False ] ) def test_byte_string_output ( fast_writer ) : t = table . Table ( [ [ 'Hello' , 'World' ] ] , dtype = [ 'S10' ] ) out = StringIO ( ) ascii . write ( t , out , fast_writer = fast_writer ) assert ( out . getvalue ( ) . splitlines ( ) == [ 'col0' , 'Hello' , 'World' ] )
test the fix for #4350 where byte strings were output with a leading b on py3 .