@pytest.mark.parametrize('fast_reader', [True, False, 'force'])
def test_read_with_names_arg(fast_reader):
 with pytest.raises(ValueError):
  dat = ascii.read(['c d', 'e f'], names=('a',), guess=False, fast_reader=fast_reader)

@ pytest . mark . parametrize ( 'fast_reader' , [ True , False , 'force' ] ) def test_read_with_names_arg ( fast_reader ) : with pytest . raises ( ValueError ) : dat = ascii . read ( [ 'c d' , 'e f' ] , names = ( 'a' , ) , guess = False , fast_reader = fast_reader )
test that a bad value of names raises an exception .