@pytest.mark.parametrize('parallel', [True, False])
def test_inf_nan(parallel, read_basic):
 text = dedent('        A\n        nan\n        +nan\n        -nan\n        inf\n        infinity\n        +inf\n        +infinity\n        -inf\n        -infinity\n    ')
 expected = Table({'A': [np.nan, np.nan, np.nan, np.inf, np.inf, np.inf, np.inf, (- np.inf), (- np.inf)]})
 table = read_basic(text, parallel=parallel)
 assert (table['A'].dtype.kind == 'f')
 assert_table_equal(table, expected)

@ pytest . mark . parametrize ( 'parallel' , [ True , False ] ) def test_inf_nan ( parallel , read_basic ) : text = dedent ( '        A\n        nan\n        +nan\n        -nan\n        inf\n        infinity\n        +inf\n        +infinity\n        -inf\n        -infinity\n    ' ) expected = Table ( { 'A' : [ np . nan , np . nan , np . nan , np . inf , np . inf , np . inf , np . inf , ( - np . inf ) , ( - np . inf ) ] } ) table = read_basic ( text , parallel = parallel ) assert ( table [ 'A' ] . dtype . kind == 'f' ) assert_table_equal ( table , expected )
test that inf and nan-like values are correctly parsed on all platforms .