question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Multiple test failures in Python 3

See original GitHub issue

Log from running astropy.test():

====================================================== FAILURES =======================================================
_______________________________________________ test_simple_data[True] ________________________________________________

parallel = True
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pytest-of-svance/pytest-0/test_simple_data_True_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_simple_data(parallel, read_basic):
        """
        Make sure the fast reader works with basic input data.
        """
>       table = read_basic("A B C\n1 2 3\n4 5 6", parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:132: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
_______________________________________________ test_simple_data[False] _______________________________________________

parallel = False
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pytest-of-svance/pytest-0/test_simple_data_False_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_simple_data(parallel, read_basic):
        """
        Make sure the fast reader works with basic input data.
        """
>       table = read_basic("A B C\n1 2 3\n4 5 6", parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:132: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
______________________________________________ test_supplied_names[True] ______________________________________________

parallel = True
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pyt...of-svance/pytest-0/test_supplied_names_True_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_supplied_names(parallel, read_basic):
        """
        If passed as a parameter, names should replace any
        column names found in the header.
        """
>       table = read_basic("A B C\n1 2 3\n4 5 6", names=('X', 'Y', 'Z'), parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:156: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
_____________________________________________ test_supplied_names[False] ______________________________________________

parallel = False
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pyt...f-svance/pytest-0/test_supplied_names_False_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_supplied_names(parallel, read_basic):
        """
        If passed as a parameter, names should replace any
        column names found in the header.
        """
>       table = read_basic("A B C\n1 2 3\n4 5 6", names=('X', 'Y', 'Z'), parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:156: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
________________________________________________ test_no_header[True] _________________________________________________

parallel = True
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pytest-of-svance/pytest-0/test_no_header_True_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)
read_no_header = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pyt...-svance/pytest-0/test_no_header_True_0'), format='no_header', Reader=<class 'astropy.io.ascii.fastbasic.FastNoHeader'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_no_header(parallel, read_basic, read_no_header):
        """
        The header should not be read when header_start=None. Unless names is
        passed, the column names should be auto-generated.
        """
        # Cannot set header_start=None for basic format
        with pytest.raises(ValueError):
            read_basic("A B C\n1 2 3\n4 5 6", header_start=None, data_start=0, parallel=parallel)

>       t2 = read_no_header("A B C\n1 2 3\n4 5 6", parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:171: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
________________________________________________ test_no_header[False] ________________________________________________

parallel = False
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pytest-of-svance/pytest-0/test_no_header_False_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)
read_no_header = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pyt...svance/pytest-0/test_no_header_False_0'), format='no_header', Reader=<class 'astropy.io.ascii.fastbasic.FastNoHeader'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_no_header(parallel, read_basic, read_no_header):
        """
        The header should not be read when header_start=None. Unless names is
        passed, the column names should be auto-generated.
        """
        # Cannot set header_start=None for basic format
        with pytest.raises(ValueError):
            read_basic("A B C\n1 2 3\n4 5 6", header_start=None, data_start=0, parallel=parallel)

>       t2 = read_no_header("A B C\n1 2 3\n4 5 6", parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:171: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
_________________________________________ test_no_header_supplied_names[True] _________________________________________

parallel = True
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pyt...ance/pytest-0/test_no_header_supplied_names_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)
read_no_header = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pyt...test-0/test_no_header_supplied_names_0'), format='no_header', Reader=<class 'astropy.io.ascii.fastbasic.FastNoHeader'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_no_header_supplied_names(parallel, read_basic, read_no_header):
        """
        If header_start=None and names is passed as a parameter, header
        data should not be read and names should be used instead.
        """
        table = read_no_header("A B C\n1 2 3\n4 5 6",
>                              names=('X', 'Y', 'Z'), parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:183: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
________________________________________ test_no_header_supplied_names[False] _________________________________________

parallel = False
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pyt...ance/pytest-0/test_no_header_supplied_names_1'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)
read_no_header = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pyt...test-0/test_no_header_supplied_names_1'), format='no_header', Reader=<class 'astropy.io.ascii.fastbasic.FastNoHeader'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_no_header_supplied_names(parallel, read_basic, read_no_header):
        """
        If header_start=None and names is passed as a parameter, header
        data should not be read and names should be used instead.
        """
        table = read_no_header("A B C\n1 2 3\n4 5 6",
>                              names=('X', 'Y', 'Z'), parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:183: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
_________________________________________________ test_comment[True] __________________________________________________

parallel = True
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pytest-of-svance/pytest-0/test_comment_True_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_comment(parallel, read_basic):
        """
        Make sure that line comments are ignored by the C reader.
        """
>       table = read_basic("# comment\nA B C\n # another comment\n1 2 3\n4 5 6", parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:193: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
_________________________________________________ test_comment[False] _________________________________________________

parallel = False
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pytest-of-svance/pytest-0/test_comment_False_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_comment(parallel, read_basic):
        """
        Make sure that line comments are ignored by the C reader.
        """
>       table = read_basic("# comment\nA B C\n # another comment\n1 2 3\n4 5 6", parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:193: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
_______________________________________________ test_empty_lines[True] ________________________________________________

parallel = True
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pytest-of-svance/pytest-0/test_empty_lines_True_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_empty_lines(parallel, read_basic):
        """
        Make sure that empty lines are ignored by the C reader.
        """
>       table = read_basic("\n\nA B C\n1 2 3\n\n\n4 5 6\n\n\n\n", parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:203: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
_______________________________________________ test_empty_lines[False] _______________________________________________

parallel = False
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pytest-of-svance/pytest-0/test_empty_lines_False_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_empty_lines(parallel, read_basic):
        """
        Make sure that empty lines are ignored by the C reader.
        """
>       table = read_basic("\n\nA B C\n1 2 3\n\n\n4 5 6\n\n\n\n", parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:203: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
____________________________________________ test_lstrip_whitespace[True] _____________________________________________

parallel = True
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pyt...svance/pytest-0/test_lstrip_whitespace_True_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_lstrip_whitespace(parallel, read_basic):
        """
        Test to make sure the reader ignores whitespace at the beginning of fields.
        """
        text = """
         1,  2,   \t3
     A,\t\t B,  C
      a, b,   c
    """ + '  \n'

>       table = read_basic(text, delimiter=',', parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:219: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
____________________________________________ test_lstrip_whitespace[False] ____________________________________________

parallel = False
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pyt...vance/pytest-0/test_lstrip_whitespace_False_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_lstrip_whitespace(parallel, read_basic):
        """
        Test to make sure the reader ignores whitespace at the beginning of fields.
        """
        text = """
         1,  2,   \t3
     A,\t\t B,  C
      a, b,   c
    """ + '  \n'

>       table = read_basic(text, delimiter=',', parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:219: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
____________________________________________ test_rstrip_whitespace[True] _____________________________________________

parallel = True
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pyt...svance/pytest-0/test_rstrip_whitespace_True_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_rstrip_whitespace(parallel, read_basic):
        """
        Test to make sure the reader ignores whitespace at the end of fields.
        """
        text = ' 1 ,2 \t,3  \nA\t,B ,C\t \t \n  \ta ,b , c \n'
>       table = read_basic(text, delimiter=',', parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:230: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
____________________________________________ test_rstrip_whitespace[False] ____________________________________________

parallel = False
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pyt...vance/pytest-0/test_rstrip_whitespace_False_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_rstrip_whitespace(parallel, read_basic):
        """
        Test to make sure the reader ignores whitespace at the end of fields.
        """
        text = ' 1 ,2 \t,3  \nA\t,B ,C\t \t \n  \ta ,b , c \n'
>       table = read_basic(text, delimiter=',', parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:230: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
________________________________________________ test_conversion[True] ________________________________________________

parallel = True
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pytest-of-svance/pytest-0/test_conversion_True_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_conversion(parallel, read_basic):
        """
        The reader should try to convert each column to ints. If this fails, the
        reader should try to convert to floats. Failing this, it should fall back
        to strings.
        """
        text = """
    A B C D E
    1 a 3 4 5
    2. 1 9 10 -5.3e4
    4 2 -12 .4 six
    """
>       table = read_basic(text, parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:248: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
_______________________________________________ test_conversion[False] ________________________________________________

parallel = False
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pytest-of-svance/pytest-0/test_conversion_False_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_conversion(parallel, read_basic):
        """
        The reader should try to convert each column to ints. If this fails, the
        reader should try to convert to floats. Failing this, it should fall back
        to strings.
        """
        text = """
    A B C D E
    1 a 3 4 5
    2. 1 9 10 -5.3e4
    4 2 -12 .4 six
    """
>       table = read_basic(text, parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:248: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
________________________________________________ test_delimiter[True] _________________________________________________

parallel = True
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pytest-of-svance/pytest-0/test_delimiter_True_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_delimiter(parallel, read_basic):
        """
        Make sure that different delimiters work as expected.
        """
        text = """
    COL1 COL2 COL3
    1 A -1
    2 B -2
    """
        expected = Table([[1, 2], ['A', 'B'], [-1, -2]], names=('COL1', 'COL2', 'COL3'))

        for sep in ' ,\t#;':
>           table = read_basic(text.replace(' ', sep), delimiter=sep, parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:269: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
________________________________________________ test_delimiter[False] ________________________________________________

parallel = False
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pytest-of-svance/pytest-0/test_delimiter_False_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_delimiter(parallel, read_basic):
        """
        Make sure that different delimiters work as expected.
        """
        text = """
    COL1 COL2 COL3
    1 A -1
    2 B -2
    """
        expected = Table([[1, 2], ['A', 'B'], [-1, -2]], names=('COL1', 'COL2', 'COL3'))

        for sep in ' ,\t#;':
>           table = read_basic(text.replace(' ', sep), delimiter=sep, parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:269: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
______________________________________________ test_include_names[True] _______________________________________________

parallel = True
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pytest-of-svance/pytest-0/test_include_names_True_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_include_names(parallel, read_basic):
        """
        If include_names is not None, the parser should read only those columns in include_names.
        """
>       table = read_basic("A B C D\n1 2 3 4\n5 6 7 8", include_names=['A', 'D'], parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:278: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
______________________________________________ test_include_names[False] ______________________________________________

parallel = False
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pyt...of-svance/pytest-0/test_include_names_False_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_include_names(parallel, read_basic):
        """
        If include_names is not None, the parser should read only those columns in include_names.
        """
>       table = read_basic("A B C D\n1 2 3 4\n5 6 7 8", include_names=['A', 'D'], parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:278: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
______________________________________________ test_exclude_names[True] _______________________________________________

parallel = True
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pytest-of-svance/pytest-0/test_exclude_names_True_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_exclude_names(parallel, read_basic):
        """
        If exclude_names is not None, the parser should exclude the columns in exclude_names.
        """
>       table = read_basic("A B C D\n1 2 3 4\n5 6 7 8", exclude_names=['A', 'D'], parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:288: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
______________________________________________ test_exclude_names[False] ______________________________________________

parallel = False
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pyt...of-svance/pytest-0/test_exclude_names_False_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_exclude_names(parallel, read_basic):
        """
        If exclude_names is not None, the parser should exclude the columns in exclude_names.
        """
>       table = read_basic("A B C D\n1 2 3 4\n5 6 7 8", exclude_names=['A', 'D'], parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:288: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
__________________________________________ test_include_exclude_names[True] ___________________________________________

parallel = True
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pyt...ance/pytest-0/test_include_exclude_names_Tru0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_include_exclude_names(parallel, read_basic):
        """
        Make sure that include_names is applied before exclude_names if both are specified.
        """
        text = """
    A B C D E F G H
    1 2 3 4 5 6 7 8
    9 10 11 12 13 14 15 16
    """
        table = read_basic(text, include_names=['A', 'B', 'D', 'F', 'H'],
>                          exclude_names=['B', 'F'], parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:304: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
__________________________________________ test_include_exclude_names[False] __________________________________________

parallel = False
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pyt...ance/pytest-0/test_include_exclude_names_Fal0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_include_exclude_names(parallel, read_basic):
        """
        Make sure that include_names is applied before exclude_names if both are specified.
        """
        text = """
    A B C D E F G H
    1 2 3 4 5 6 7 8
    9 10 11 12 13 14 15 16
    """
        table = read_basic(text, include_names=['A', 'B', 'D', 'F', 'H'],
>                          exclude_names=['B', 'F'], parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:304: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
______________________________________________ test_quoted_fields[False] ______________________________________________

parallel = False
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pyt...of-svance/pytest-0/test_quoted_fields_False_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_quoted_fields(parallel, read_basic):
        """
        The character quotechar (default '"') should denote the start of a field which can
        contain the field delimiter and newlines.
        """
        if parallel:
            pytest.xfail("Multiprocessing can fail with quoted fields")
        text = """
    "A B" C D
    1.5 2.1 -37.1
    a b "   c
     d"
    """
>       table = read_basic(text, parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:323: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
_____________________________________________ test_not_enough_cols[True] ______________________________________________

parallel = True
read_csv = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pytest-of-svance/pytest-0/test_not_enough_cols_True_0'), format='csv', Reader=<class 'astropy.io.ascii.fastbasic.FastCsv'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_not_enough_cols(parallel, read_csv):
        """
        If a row does not have enough columns, the FastCsv reader should add empty
        fields while the FastBasic reader should raise an error.
        """
        text = """
    A,B,C
    1,2,3
    4,5
    6,7,8
    """
>       table = read_csv(text, parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:393: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
_____________________________________________ test_not_enough_cols[False] _____________________________________________

parallel = False
read_csv = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pytest-of-svance/pytest-0/test_not_enough_cols_False_0'), format='csv', Reader=<class 'astropy.io.ascii.fastbasic.FastCsv'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_not_enough_cols(parallel, read_csv):
        """
        If a row does not have enough columns, the FastCsv reader should add empty
        fields while the FastBasic reader should raise an error.
        """
        text = """
    A,B,C
    1,2,3
    4,5
    6,7,8
    """
>       table = read_csv(text, parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:393: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
_________________________________________________ test_data_end[True] _________________________________________________

parallel = True
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pytest-of-svance/pytest-0/test_data_end_True_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)
read_rdb = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pytest-of-svance/pytest-0/test_data_end_True_0'), format='rdb', Reader=<class 'astropy.io.ascii.fastbasic.FastRdb'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_data_end(parallel, read_basic, read_rdb):
        """
        The parameter data_end should specify where data reading ends.
        """
        text = """
    A B C
    1 2 3
    4 5 6
    7 8 9
    10 11 12
    """
>       table = read_basic(text, data_end=3, parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:413: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
________________________________________________ test_data_end[False] _________________________________________________

parallel = False
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pytest-of-svance/pytest-0/test_data_end_False_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)
read_rdb = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pytest-of-svance/pytest-0/test_data_end_False_0'), format='rdb', Reader=<class 'astropy.io.ascii.fastbasic.FastRdb'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_data_end(parallel, read_basic, read_rdb):
        """
        The parameter data_end should specify where data reading ends.
        """
        text = """
    A B C
    1 2 3
    4 5 6
    7 8 9
    10 11 12
    """
>       table = read_basic(text, data_end=3, parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:413: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
_________________________________________________ test_inf_nan[True] __________________________________________________

parallel = True
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pytest-of-svance/pytest-0/test_inf_nan_True_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_inf_nan(parallel, read_basic):
        """
        Test that inf and nan-like values are correctly parsed on all platforms.

        Regression test for https://github.com/astropy/astropy/pull/3525
        """

        text = dedent("""\
            A
            nan
            +nan
            -nan
            inf
            infinity
            +inf
            +infinity
            -inf
            -infinity
        """)

        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)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:469: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
_________________________________________________ test_inf_nan[False] _________________________________________________

parallel = False
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pytest-of-svance/pytest-0/test_inf_nan_False_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_inf_nan(parallel, read_basic):
        """
        Test that inf and nan-like values are correctly parsed on all platforms.

        Regression test for https://github.com/astropy/astropy/pull/3525
        """

        text = dedent("""\
            A
            nan
            +nan
            -nan
            inf
            infinity
            +inf
            +infinity
            -inf
            -infinity
        """)

        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)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:469: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
_______________________________________________ test_fill_values[True] ________________________________________________

parallel = True
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pytest-of-svance/pytest-0/test_fill_values_True_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_fill_values(parallel, read_basic):
        """
        Make sure that the parameter fill_values works as intended. If fill_values
        is not specified, the default behavior should be to convert '' to 0.
        """
        text = """
    A, B, C
    , 2, nan
    a, -999, -3.4
    nan, 5, -9999
    8, nan, 7.6e12
    """
>       table = read_basic(text, delimiter=',', parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:487: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
_______________________________________________ test_fill_values[False] _______________________________________________

parallel = False
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pytest-of-svance/pytest-0/test_fill_values_False_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_fill_values(parallel, read_basic):
        """
        Make sure that the parameter fill_values works as intended. If fill_values
        is not specified, the default behavior should be to convert '' to 0.
        """
        text = """
    A, B, C
    , 2, nan
    a, -999, -3.4
    nan, 5, -9999
    8, nan, 7.6e12
    """
>       table = read_basic(text, delimiter=',', parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:487: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
________________________________________ test_fill_include_exclude_names[True] ________________________________________

parallel = True
read_csv = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pyt...f-svance/pytest-0/test_fill_include_exclude_name0'), format='csv', Reader=<class 'astropy.io.ascii.fastbasic.FastCsv'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_fill_include_exclude_names(parallel, read_csv):
        """
        fill_include_names and fill_exclude_names should filter missing/empty value handling
        in the same way that include_names and exclude_names filter output columns.
        """
        text = """
    A, B, C
    , 1, 2
    3, , 4
    5, 5,
    """
>       table = read_csv(text, fill_include_names=['A', 'B'], parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:534: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
_______________________________________ test_fill_include_exclude_names[False] ________________________________________

parallel = False
read_csv = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pyt...f-svance/pytest-0/test_fill_include_exclude_name1'), format='csv', Reader=<class 'astropy.io.ascii.fastbasic.FastCsv'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_fill_include_exclude_names(parallel, read_csv):
        """
        fill_include_names and fill_exclude_names should filter missing/empty value handling
        in the same way that include_names and exclude_names filter output columns.
        """
        text = """
    A, B, C
    , 1, 2
    3, , 4
    5, 5,
    """
>       table = read_csv(text, fill_include_names=['A', 'B'], parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:534: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
________________________________________________ test_many_rows[True] _________________________________________________

parallel = True
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pytest-of-svance/pytest-0/test_many_rows_True_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_many_rows(parallel, read_basic):
        """
        Make sure memory reallocation works okay when the number of rows
        is large (so that each column string is longer than INITIAL_COL_SIZE).
        """
        text = 'A B C\n'
        for i in range(500): # create 500 rows
            text += ' '.join([str(i) for i in range(3)])
            text += '\n'

>       table = read_basic(text, parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:561: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
________________________________________________ test_many_rows[False] ________________________________________________

parallel = False
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pytest-of-svance/pytest-0/test_many_rows_False_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_many_rows(parallel, read_basic):
        """
        Make sure memory reallocation works okay when the number of rows
        is large (so that each column string is longer than INITIAL_COL_SIZE).
        """
        text = 'A B C\n'
        for i in range(500): # create 500 rows
            text += ' '.join([str(i) for i in range(3)])
            text += '\n'

>       table = read_basic(text, parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:561: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
_______________________________________________ test_many_columns[True] _______________________________________________

parallel = True
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pytest-of-svance/pytest-0/test_many_columns_True_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_many_columns(parallel, read_basic):
        """
        Make sure memory reallocation works okay when the number of columns
        is large (so that each header string is longer than INITIAL_HEADER_SIZE).
        """
        # create a string with 500 columns and two data rows
        text = ' '.join([str(i) for i in range(500)])
        text += ('\n' + text + '\n' + text)
>       table = read_basic(text, parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:575: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
______________________________________________ test_many_columns[False] _______________________________________________

parallel = False
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pytest-of-svance/pytest-0/test_many_columns_False_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_many_columns(parallel, read_basic):
        """
        Make sure memory reallocation works okay when the number of columns
        is large (so that each header string is longer than INITIAL_HEADER_SIZE).
        """
        # create a string with 500 columns and two data rows
        text = ' '.join([str(i) for i in range(500)])
        text += ('\n' + text + '\n' + text)
>       table = read_basic(text, parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:575: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
________________________________________________ test_read_tab[False] _________________________________________________

parallel = False
read_tab = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pytest-of-svance/pytest-0/test_read_tab_False_0'), format='tab', Reader=<class 'astropy.io.ascii.fastbasic.FastTab'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_read_tab(parallel, read_tab):
        """
        The fast reader for tab-separated values should not strip whitespace, unlike
        the basic reader.
        """
        if parallel:
            pytest.xfail("Multiprocessing can fail with quoted fields")
        text = '1\t2\t3\n  a\t b \t\n c\t" d\n e"\t  '
>       table = read_tab(text, parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:621: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
____________________________________________ test_default_data_start[True] ____________________________________________

parallel = True
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pyt...vance/pytest-0/test_default_data_start_True_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_default_data_start(parallel, read_basic):
        """
        If data_start is not explicitly passed to read(), data processing should
        beginning right after the header.
        """
        text = 'ignore this line\na b c\n1 2 3\n4 5 6'
>       table = read_basic(text, header_start=1, parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:636: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
___________________________________________ test_default_data_start[False] ____________________________________________

parallel = False
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pyt...ance/pytest-0/test_default_data_start_False_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_default_data_start(parallel, read_basic):
        """
        If data_start is not explicitly passed to read(), data processing should
        beginning right after the header.
        """
        text = 'ignore this line\na b c\n1 2 3\n4 5 6'
>       table = read_basic(text, header_start=1, parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:636: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
_____________________________________________ test_commented_header[True] _____________________________________________

parallel = True
read_commented_header = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pyt..._commented_header_True_0'), format='commented_header', Reader=<class 'astropy.io.ascii.fastbasic.FastCommentedHeader'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_commented_header(parallel, read_commented_header):
        """
        The FastCommentedHeader reader should mimic the behavior of the
        CommentedHeader by overriding the default header behavior of FastBasic.
        """
        text = """
     # A B C
     1 2 3
     4 5 6
    """
>       t1 = read_commented_header(text, parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:652: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:233: in read
    out = super(FastCommentedHeader, self).read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
____________________________________________ test_commented_header[False] _____________________________________________

parallel = False
read_commented_header = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pyt...commented_header_False_0'), format='commented_header', Reader=<class 'astropy.io.ascii.fastbasic.FastCommentedHeader'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_commented_header(parallel, read_commented_header):
        """
        The FastCommentedHeader reader should mimic the behavior of the
        CommentedHeader by overriding the default header behavior of FastBasic.
        """
        text = """
     # A B C
     1 2 3
     4 5 6
    """
>       t1 = read_commented_header(text, parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:652: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:233: in read
    out = super(FastCommentedHeader, self).read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
___________________________________________________ test_rdb[True] ____________________________________________________

parallel = True
read_rdb = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pytest-of-svance/pytest-0/test_rdb_True_0'), format='rdb', Reader=<class 'astropy.io.ascii.fastbasic.FastRdb'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_rdb(parallel, read_rdb):
        """
        Make sure the FastRdb reader works as expected.
        """
        text = """

    A\tB\tC
    1n\tS\t4N
    1\t 9\t4.3
    """
>       table = read_rdb(text, parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:682: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
___________________________________________________ test_rdb[False] ___________________________________________________

parallel = False
read_rdb = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pytest-of-svance/pytest-0/test_rdb_False_0'), format='rdb', Reader=<class 'astropy.io.ascii.fastbasic.FastRdb'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_rdb(parallel, read_rdb):
        """
        Make sure the FastRdb reader works as expected.
        """
        text = """

    A\tB\tC
    1n\tS\t4N
    1\t 9\t4.3
    """
>       table = read_rdb(text, parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:682: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
_______________________________________________ test_data_start[False] ________________________________________________

parallel = False
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pytest-of-svance/pytest-0/test_data_start_False_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_data_start(parallel, read_basic):
        """
        Make sure that data parsing begins at data_start (ignoring empty and
        commented lines but not taking quoted values into account).
        """
        if parallel:
            pytest.xfail("Multiprocessing can fail with quoted fields")
        text = """
    A B C
    1 2 3
    4 5 6

    7 8 "9
     \t1"
    # comment
    10 11 12
    """
>       table = read_basic(text, data_start=2, parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:723: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
___________________________________________ test_quoted_empty_values[False] ___________________________________________

parallel = False
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pyt...ance/pytest-0/test_quoted_empty_values_False0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_quoted_empty_values(parallel, read_basic):
        """
        Quoted empty values spanning multiple lines should be treated correctly.
        """
        if parallel:
            pytest.xfail("Multiprocessing can fail with quoted fields")
        text = 'a b c\n1 2 " \n "'
>       table = read_basic(text, parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:765: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
___________________________________________ test_csv_comment_default[True] ____________________________________________

parallel = True
read_csv = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pyt...f-svance/pytest-0/test_csv_comment_default_True_0'), format='csv', Reader=<class 'astropy.io.ascii.fastbasic.FastCsv'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_csv_comment_default(parallel, read_csv):
        """
        Unless the comment parameter is specified, the CSV reader should
        not treat any lines as comments.
        """
        text = 'a,b,c\n#1,2,3\n4,5,6'
>       table = read_csv(text, parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:776: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
___________________________________________ test_csv_comment_default[False] ___________________________________________

parallel = False
read_csv = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pyt...f-svance/pytest-0/test_csv_comment_default_False0'), format='csv', Reader=<class 'astropy.io.ascii.fastbasic.FastCsv'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_csv_comment_default(parallel, read_csv):
        """
        Unless the comment parameter is specified, the CSV reader should
        not treat any lines as comments.
        """
        text = 'a,b,c\n#1,2,3\n4,5,6'
>       table = read_csv(text, parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:776: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
________________________________________ test_whitespace_before_comment[True] _________________________________________

parallel = True
read_tab = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pyt...f-svance/pytest-0/test_whitespace_before_comment0'), format='tab', Reader=<class 'astropy.io.ascii.fastbasic.FastTab'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_whitespace_before_comment(parallel, read_tab):
        """
        Readers that don't strip whitespace from data (Tab, RDB)
        should still treat lines with leading whitespace and then
        the comment char as comment lines.
        """
        text = 'a\tb\tc\n # comment line\n1\t2\t3'
>       table = read_tab(text, parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:789: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
________________________________________ test_whitespace_before_comment[False] ________________________________________

parallel = False
read_tab = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pyt...f-svance/pytest-0/test_whitespace_before_comment1'), format='tab', Reader=<class 'astropy.io.ascii.fastbasic.FastTab'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_whitespace_before_comment(parallel, read_tab):
        """
        Readers that don't strip whitespace from data (Tab, RDB)
        should still treat lines with leading whitespace and then
        the comment char as comment lines.
        """
        text = 'a\tb\tc\n # comment line\n1\t2\t3'
>       table = read_tab(text, parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:789: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
______________________________________ test_strip_line_trailing_whitespace[True] ______________________________________

parallel = True
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pyt...ance/pytest-0/test_strip_line_trailing_white0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_strip_line_trailing_whitespace(parallel, read_basic):
        """
        Readers that strip whitespace from lines should ignore
        trailing whitespace after the last data value of each
        row.
        """
        text = 'a b c\n1 2 \n3 4 5'
        with pytest.raises(CParserError) as e:
            ascii.read(StringIO(text), format='fast_basic', guess=False)
        assert 'not enough columns found in line 1' in str(e)

        text = 'a b c\n 1 2 3   \t \n 4 5 6 '
>       table = read_basic(text, parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:807: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
_____________________________________ test_strip_line_trailing_whitespace[False] ______________________________________

parallel = False
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pyt...ance/pytest-0/test_strip_line_trailing_white1'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_strip_line_trailing_whitespace(parallel, read_basic):
        """
        Readers that strip whitespace from lines should ignore
        trailing whitespace after the last data value of each
        row.
        """
        text = 'a b c\n1 2 \n3 4 5'
        with pytest.raises(CParserError) as e:
            ascii.read(StringIO(text), format='fast_basic', guess=False)
        assert 'not enough columns found in line 1' in str(e)

        text = 'a b c\n 1 2 3   \t \n 4 5 6 '
>       table = read_basic(text, parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:807: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
_________________________________________________ test_no_data[True] __________________________________________________

parallel = True
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pytest-of-svance/pytest-0/test_no_data_True_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_no_data(parallel, read_basic):
        """
        As long as column names are supplied, the C reader
        should return an empty table in the absence of data.
        """
>       table = read_basic('a b c', parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:818: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
_________________________________________________ test_no_data[False] _________________________________________________

parallel = False
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pytest-of-svance/pytest-0/test_no_data_False_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_no_data(parallel, read_basic):
        """
        As long as column names are supplied, the C reader
        should return an empty table in the absence of data.
        """
>       table = read_basic('a b c', parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:818: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
_______________________________________________ test_line_endings[True] _______________________________________________

parallel = True
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pytest-of-svance/pytest-0/test_line_endings_True_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)
read_commented_header = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pyt...test_line_endings_True_0'), format='commented_header', Reader=<class 'astropy.io.ascii.fastbasic.FastCommentedHeader'>)
read_rdb = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pytest-of-svance/pytest-0/test_line_endings_True_0'), format='rdb', Reader=<class 'astropy.io.ascii.fastbasic.FastRdb'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_line_endings(parallel, read_basic, read_commented_header, read_rdb):
        """
        Make sure the fast reader accepts CR and CR+LF
        as newlines.
        """
        text = 'a b c\n1 2 3\n4 5 6\n7 8 9\n'
        expected = Table([[1, 4, 7], [2, 5, 8], [3, 6, 9]], names=('a', 'b', 'c'))

        for newline in ('\r\n', '\r'):
>           table = read_basic(text.replace('\n', newline), parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:836: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
______________________________________________ test_line_endings[False] _______________________________________________

parallel = False
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pytest-of-svance/pytest-0/test_line_endings_False_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)
read_commented_header = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pyt...est_line_endings_False_0'), format='commented_header', Reader=<class 'astropy.io.ascii.fastbasic.FastCommentedHeader'>)
read_rdb = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pytest-of-svance/pytest-0/test_line_endings_False_0'), format='rdb', Reader=<class 'astropy.io.ascii.fastbasic.FastRdb'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_line_endings(parallel, read_basic, read_commented_header, read_rdb):
        """
        Make sure the fast reader accepts CR and CR+LF
        as newlines.
        """
        text = 'a b c\n1 2 3\n4 5 6\n7 8 9\n'
        expected = Table([[1, 4, 7], [2, 5, 8], [3, 6, 9]], names=('a', 'b', 'c'))

        for newline in ('\r\n', '\r'):
>           table = read_basic(text.replace('\n', newline), parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:836: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
______________________________________________ test_store_comments[True] ______________________________________________

parallel = True
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pyt...of-svance/pytest-0/test_store_comments_True_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_store_comments(parallel, read_basic):
        """
        Make sure that the output Table produced by the fast
        reader stores any comment lines in its meta attribute.
        """
        text = """
    # header comment
    a b c
    # comment 2
    # comment 3
    1 2 3
    4 5 6
    """
>       table = read_basic(text, parallel=parallel, check_meta=True)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:865: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
_____________________________________________ test_store_comments[False] ______________________________________________

parallel = False
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pyt...f-svance/pytest-0/test_store_comments_False_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_store_comments(parallel, read_basic):
        """
        Make sure that the output Table produced by the fast
        reader stores any comment lines in its meta attribute.
        """
        text = """
    # header comment
    a b c
    # comment 2
    # comment 3
    1 2 3
    4 5 6
    """
>       table = read_basic(text, parallel=parallel, check_meta=True)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:865: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
_______________________________________________ test_empty_quotes[True] _______________________________________________

parallel = True
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pytest-of-svance/pytest-0/test_empty_quotes_True_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_empty_quotes(parallel, read_basic):
        """
        Make sure the C reader doesn't segfault when the
        input data contains empty quotes. [#3407]
        """
>       table = read_basic('a b\n1 ""\n2 ""', parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:875: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
______________________________________________ test_empty_quotes[False] _______________________________________________

parallel = False
read_basic = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pytest-of-svance/pytest-0/test_empty_quotes_False_0'), format='basic', Reader=<class 'astropy.io.ascii.fastbasic.FastBasic'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_empty_quotes(parallel, read_basic):
        """
        Make sure the C reader doesn't segfault when the
        input data contains empty quotes. [#3407]
        """
>       table = read_basic('a b\n1 ""\n2 ""', parallel=parallel)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:875: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
___________________________________________ test_fast_tab_with_names[True] ____________________________________________

parallel = True
read_tab = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pyt...f-svance/pytest-0/test_fast_tab_with_names_True_0'), format='tab', Reader=<class 'astropy.io.ascii.fastbasic.FastTab'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_fast_tab_with_names(parallel, read_tab):
        """
        Make sure the C reader doesn't segfault when the header for the
        first column is missing [#3545]
        """
        content = """#
    \tdecDeg\tRate_pn_offAxis\tRate_mos2_offAxis\tObsID\tSourceID\tRADeg\tversion\tCounts_pn\tRate_pn\trun\tRate_mos1\tRate_mos2\tInserted_pn\tInserted_mos2\tbeta\tRate_mos1_offAxis\trcArcsec\tname\tInserted\tCounts_mos1\tInserted_mos1\tCounts_mos2\ty\tx\tCounts\toffAxis\tRot
    -3.007559\t0.0000\t0.0010\t0013140201\t0\t213.462574\t0\t2\t0.0002\t0\t0.0001\t0.0001\t0\t1\t0.66\t0.0217\t3.0\tfakeXMMXCS J1413.8-0300\t3\t1\t2\t1\t398.000\t127.000\t5\t13.9\t72.3\t"""
        head = ['A{0}'.format(i) for i in range(28)]
        table = read_tab(content, data_start=1,
>                        parallel=parallel, names=head)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:890: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
___________________________________________ test_fast_tab_with_names[False] ___________________________________________

parallel = False
read_tab = functools.partial(<function _read at 0x11dcaa0d0>, local('/private/var/folders/k0/8xr544gx23996t3d1d2s_d1h813q0m/T/pyt...f-svance/pytest-0/test_fast_tab_with_names_False0'), format='tab', Reader=<class 'astropy.io.ascii.fastbasic.FastTab'>)

    @pytest.mark.parametrize("parallel", [True, False])
    def test_fast_tab_with_names(parallel, read_tab):
        """
        Make sure the C reader doesn't segfault when the header for the
        first column is missing [#3545]
        """
        content = """#
    \tdecDeg\tRate_pn_offAxis\tRate_mos2_offAxis\tObsID\tSourceID\tRADeg\tversion\tCounts_pn\tRate_pn\trun\tRate_mos1\tRate_mos2\tInserted_pn\tInserted_mos2\tbeta\tRate_mos1_offAxis\trcArcsec\tname\tInserted\tCounts_mos1\tInserted_mos1\tCounts_mos2\ty\tx\tCounts\toffAxis\tRot
    -3.007559\t0.0000\t0.0010\t0013140201\t0\t213.462574\t0\t2\t0.0002\t0\t0.0001\t0.0001\t0\t1\t0.66\t0.0217\t3.0\tfakeXMMXCS J1413.8-0300\t3\t1\t2\t1\t398.000\t127.000\t5\t13.9\t72.3\t"""
        head = ['A{0}'.format(i) for i in range(28)]
        table = read_tab(content, data_start=1,
>                        parallel=parallel, names=head)

anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:890: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/site-packages/astropy/io/ascii/tests/test_c_reader.py:84: in _read
    t7 = ascii.read(filename, format=format, guess=False, **kwargs)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/ui.py:328: in read
    dat = fast_reader.read(table)
anaconda/lib/python3.5/site-packages/astropy/io/ascii/fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
______________________________________________ test_read_all_files[True] ______________________________________________

fast_reader = True

    @pytest.mark.parametrize('fast_reader', [True, False, 'force'])
    def test_read_all_files(fast_reader):
        for testfile in get_testfiles():
            if testfile.get('skip'):
                print('\n\n******** SKIPPING %s' % testfile['name'])
                continue
            print('\n\n******** READING %s' % testfile['name'])
            for guess in (True, False):
                test_opts = testfile['opts'].copy()
                if 'guess' not in test_opts:
                    test_opts['guess'] = guess
                if 'Reader' in test_opts and 'fast_{0}'.format(test_opts['Reader']._format_name) \
                    in core.FAST_CLASSES: # has fast version
                    if 'Inputter' not in test_opts: # fast reader doesn't allow this
                        test_opts['fast_reader'] = fast_reader
>               table = ascii.read(testfile['name'], **test_opts)

test_read.py:131: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../ui.py:328: in read
    dat = fast_reader.read(table)
../fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
------------------------------------------------ Captured stdout call -------------------------------------------------


******** READING t/apostrophe.rdb
_____________________________________________ test_read_all_files[force] ______________________________________________

fast_reader = 'force'

    @pytest.mark.parametrize('fast_reader', [True, False, 'force'])
    def test_read_all_files(fast_reader):
        for testfile in get_testfiles():
            if testfile.get('skip'):
                print('\n\n******** SKIPPING %s' % testfile['name'])
                continue
            print('\n\n******** READING %s' % testfile['name'])
            for guess in (True, False):
                test_opts = testfile['opts'].copy()
                if 'guess' not in test_opts:
                    test_opts['guess'] = guess
                if 'Reader' in test_opts and 'fast_{0}'.format(test_opts['Reader']._format_name) \
                    in core.FAST_CLASSES: # has fast version
                    if 'Inputter' not in test_opts: # fast reader doesn't allow this
                        test_opts['fast_reader'] = fast_reader
>               table = ascii.read(testfile['name'], **test_opts)

test_read.py:131: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../ui.py:328: in read
    dat = fast_reader.read(table)
../fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
------------------------------------------------ Captured stdout call -------------------------------------------------


******** READING t/apostrophe.rdb
_________________________________________ test_read_all_files_via_table[True] _________________________________________

fast_reader = True

    @pytest.mark.parametrize('fast_reader', [True, False, 'force'])
    def test_read_all_files_via_table(fast_reader):
        for testfile in get_testfiles():
            if testfile.get('skip'):
                print('\n\n******** SKIPPING %s' % testfile['name'])
                continue
            print('\n\n******** READING %s' % testfile['name'])
            for guess in (True, False):
                test_opts = testfile['opts'].copy()
                if 'guess' not in test_opts:
                    test_opts['guess'] = guess
                if 'Reader' in test_opts:
                    format = 'ascii.{0}'.format(test_opts['Reader']._format_name)
                    del test_opts['Reader']
                else:
                    format = 'ascii'
                if 'fast_{0}'.format(format) in core.FAST_CLASSES:
                    test_opts['fast_reader'] = fast_reader
>               table = Table.read(testfile['name'], format=format, **test_opts)

test_read.py:155: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../../table/table.py:2332: in read
    return io_registry.read(cls, *args, **kwargs)
../../registry.py:351: in read
    data = reader(*args, **kwargs)
../connect.py:37: in io_read
    return read(filename, format=format, **kwargs)
../ui.py:328: in read
    dat = fast_reader.read(table)
../fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
------------------------------------------------ Captured stdout call -------------------------------------------------


******** READING t/apostrophe.rdb
________________________________________ test_read_all_files_via_table[False] _________________________________________

fast_reader = False

    @pytest.mark.parametrize('fast_reader', [True, False, 'force'])
    def test_read_all_files_via_table(fast_reader):
        for testfile in get_testfiles():
            if testfile.get('skip'):
                print('\n\n******** SKIPPING %s' % testfile['name'])
                continue
            print('\n\n******** READING %s' % testfile['name'])
            for guess in (True, False):
                test_opts = testfile['opts'].copy()
                if 'guess' not in test_opts:
                    test_opts['guess'] = guess
                if 'Reader' in test_opts:
                    format = 'ascii.{0}'.format(test_opts['Reader']._format_name)
                    del test_opts['Reader']
                else:
                    format = 'ascii'
                if 'fast_{0}'.format(format) in core.FAST_CLASSES:
                    test_opts['fast_reader'] = fast_reader
>               table = Table.read(testfile['name'], format=format, **test_opts)

test_read.py:155: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../../table/table.py:2332: in read
    return io_registry.read(cls, *args, **kwargs)
../../registry.py:351: in read
    data = reader(*args, **kwargs)
../connect.py:37: in io_read
    return read(filename, format=format, **kwargs)
../ui.py:328: in read
    dat = fast_reader.read(table)
../fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
------------------------------------------------ Captured stdout call -------------------------------------------------


******** READING t/apostrophe.rdb
________________________________________ test_read_all_files_via_table[force] _________________________________________

fast_reader = 'force'

    @pytest.mark.parametrize('fast_reader', [True, False, 'force'])
    def test_read_all_files_via_table(fast_reader):
        for testfile in get_testfiles():
            if testfile.get('skip'):
                print('\n\n******** SKIPPING %s' % testfile['name'])
                continue
            print('\n\n******** READING %s' % testfile['name'])
            for guess in (True, False):
                test_opts = testfile['opts'].copy()
                if 'guess' not in test_opts:
                    test_opts['guess'] = guess
                if 'Reader' in test_opts:
                    format = 'ascii.{0}'.format(test_opts['Reader']._format_name)
                    del test_opts['Reader']
                else:
                    format = 'ascii'
                if 'fast_{0}'.format(format) in core.FAST_CLASSES:
                    test_opts['fast_reader'] = fast_reader
>               table = Table.read(testfile['name'], format=format, **test_opts)

test_read.py:155: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../../../table/table.py:2332: in read
    return io_registry.read(cls, *args, **kwargs)
../../registry.py:351: in read
    data = reader(*args, **kwargs)
../connect.py:37: in io_read
    return read(filename, format=format, **kwargs)
../ui.py:328: in read
    dat = fast_reader.read(table)
../fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
------------------------------------------------ Captured stdout call -------------------------------------------------


******** READING t/apostrophe.rdb
__________________________________________ test_empty_table_no_header[True] ___________________________________________

fast_reader = True

    @pytest.mark.parametrize('fast_reader', [True, False, 'force'])
    def test_empty_table_no_header(fast_reader):
        with pytest.raises(ascii.InconsistentTableError):
            table = ascii.read('t/no_data_without_header.dat', Reader=ascii.NoHeader,
>                               guess=False, fast_reader=fast_reader)

test_read.py:235: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../ui.py:328: in read
    dat = fast_reader.read(table)
../fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
__________________________________________ test_empty_table_no_header[force] __________________________________________

fast_reader = 'force'

    @pytest.mark.parametrize('fast_reader', [True, False, 'force'])
    def test_empty_table_no_header(fast_reader):
        with pytest.raises(ascii.InconsistentTableError):
            table = ascii.read('t/no_data_without_header.dat', Reader=ascii.NoHeader,
>                               guess=False, fast_reader=fast_reader)

test_read.py:235: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
../ui.py:328: in read
    dat = fast_reader.read(table)
../fastbasic.py:100: in read
    **self.kwargs)
astropy/io/ascii/cparser.pyx:230: in astropy.io.ascii.cparser.CParser.__cinit__ (astropy/io/ascii/cparser.c:3942)
    ???
astropy/io/ascii/cparser.pyx:272: in astropy.io.ascii.cparser.CParser.setup_tokenizer (astropy/io/ascii/cparser.c:4686)
    ???
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

>   ???
E   OSError: [Errno 22] Invalid argument

astropy/io/ascii/cparser.pyx:127: OSError
___________________________________________ test_multiprocessing_forkserver ___________________________________________

    @pytest.mark.skipif('not PY3_4 or sys.platform == "win32" or sys.platform.startswith("gnu0")')
    def test_multiprocessing_forkserver():
        """
        Test that using multiprocessing with forkserver works.  Perhaps
        a simpler more direct test would be to just open some local
        sockets and pass something through them.

        Regression test for https://github.com/astropy/astropy/pull/3713
        """

        import multiprocessing
        ctx = multiprocessing.get_context('forkserver')
>       pool = ctx.Pool(1)

anaconda/lib/python3.5/site-packages/astropy/tests/tests/test_socketblocker.py:82: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
anaconda/lib/python3.5/multiprocessing/context.py:118: in Pool
    context=self.get_context())
anaconda/lib/python3.5/multiprocessing/pool.py:168: in __init__
    self._repopulate_pool()
anaconda/lib/python3.5/multiprocessing/pool.py:233: in _repopulate_pool
    w.start()
anaconda/lib/python3.5/multiprocessing/process.py:105: in start
    self._popen = self._Popen(self)
anaconda/lib/python3.5/multiprocessing/context.py:281: in _Popen
    return Popen(process_obj)
anaconda/lib/python3.5/multiprocessing/popen_forkserver.py:36: in __init__
    super().__init__(process_obj)
anaconda/lib/python3.5/multiprocessing/popen_fork.py:20: in __init__
    self._launch(process_obj)
anaconda/lib/python3.5/multiprocessing/popen_forkserver.py:56: in _launch
    self.pid = forkserver.read_unsigned(self.sentinel)
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

fd = 24

    def read_unsigned(fd):
        data = b''
        length = UNSIGNED_STRUCT.size
        while len(data) < length:
            s = os.read(fd, length - len(data))
            if not s:
>               raise EOFError('unexpected EOF')
E               EOFError: unexpected EOF

anaconda/lib/python3.5/multiprocessing/forkserver.py:233: EOFError
------------------------------------------------ Captured stderr call -------------------------------------------------
Traceback (most recent call last):
  File "/Users/svance/anaconda/lib/python3.5/multiprocessing/forkserver.py", line 184, in main
    _serve_one(s, listener, alive_r, handler)
  File "/Users/svance/anaconda/lib/python3.5/multiprocessing/forkserver.py", line 202, in _serve_one
    fds = reduction.recvfds(s, MAXFDS_TO_SEND + 1)
  File "/Users/svance/anaconda/lib/python3.5/multiprocessing/reduction.py", line 167, in recvfds
    assert len(a) % 256 == msg[0]
AssertionError
========================== 74 failed, 8125 passed, 103 skipped, 37 xfailed in 185.33 seconds ==========================
1

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:14 (10 by maintainers)

github_iconTop GitHub Comments

1reaction
pllimcommented, Oct 23, 2016

@bsipocz , is the new title less confusing?

1reaction
MSeifert04commented, Oct 22, 2016

Thank you for the report but could you copy the log to a gist? That makes it much easier to review.

Read more comments on GitHub >

github_iconTop Results From Across the Web

If I have multiple tests in one class and a preceding test fails ...
I'm trying to avoid coding in a logic check for test failures if it's unnecessary, but it appears that may be the only...
Read more >
unittest — Unit testing framework — Python 3.11.1 ...
test fixture. A test fixture represents the preparation needed to perform one or more tests, and any associated cleanup actions. This may involve,...
Read more >
Python | Skipping Test Failures - GeeksforGeeks
Problem – To skip or mark selected tests as an anticipated failure in the unit tests. The unittest module has decorators that can...
Read more >
Getting Started With Testing in Python
Testing multiple components is known as integration testing. ... Writing tests in this way is okay for a simple check, but what if...
Read more >
UnitTest Framework - Quick Guide - Tutorialspoint
Python testing framework uses Python's built-in assert() function which tests a particular condition. If the assertion fails, an AssertionError will be raised.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found