Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CI: Flakey Test #30031

Closed
alimcmaster1 opened this issue Dec 4, 2019 · 0 comments · Fixed by #30096
Closed

CI: Flakey Test #30031

alimcmaster1 opened this issue Dec 4, 2019 · 0 comments · Fixed by #30096
Labels
CI Continuous Integration IO Data IO issues that don't fit into a more specific label
Milestone

Comments

@alimcmaster1
Copy link
Member

alimcmaster1 commented Dec 4, 2019

https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=22330

Below test fails when ResourceWarnings are raised

______________ test_chunks_have_consistent_numerical_type[python] ______________
[gw1] linux -- Python 3.6.1 /home/vsts/miniconda3/envs/pandas-dev/bin/python

all_parsers = <pandas.tests.io.parser.conftest.PythonParser object at 0x7f204e3382b0>

    def test_chunks_have_consistent_numerical_type(all_parsers):
        parser = all_parsers
        integers = [str(i) for i in range(499999)]
        data = "a\n" + "\n".join(integers + ["1.0", "2.0"] + integers)
    
        # Coercions should work without warnings.
        with tm.assert_produces_warning(None):
>           result = parser.read_csv(StringIO(data))

pandas/tests/io/parser/test_common.py:1204: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 

self = <contextlib._GeneratorContextManager object at 0x7f2010677550>
type = None, value = None, traceback = None

    def __exit__(self, type, value, traceback):
        if type is None:
            try:
>               next(self.gen)
E               AssertionError: Caused unexpected warning(s): [('ResourceWarning', ResourceWarning("unclosed file <_io.BufferedReader name='testmultiindex.xlsm'>",), '/home/vsts/work/1/s/pandas/io/parsers.py', 2931), ('ResourceWarning', ResourceWarning("unclosed file <_io.BufferedReader name='testmultiindex.xlsx'>",), '/home/vsts/work/1/s/pandas/io/parsers.py', 2931), ('ResourceWarning', ResourceWarning("unclosed file <_io.BufferedReader name='test_index_name_pre17.xlsm'>",), '/home/vsts/work/1/s/pandas/io/parsers.py', 2931), ('ResourceWarning', ResourceWarning("unclosed file <_io.BufferedReader name='test1.xlsx'>",), '/home/vsts/work/1/s/pandas/io/parsers.py', 2931), ('ResourceWarning', ResourceWarning("unclosed file <_io.BufferedReader name='test4.xlsx'>",), '/home/vsts/work/1/s/pandas/io/parsers.py', 2931)]
@alimcmaster1 alimcmaster1 added CI Continuous Integration IO Data IO issues that don't fit into a more specific label labels Dec 4, 2019
@jreback jreback added this to the 1.0 milestone Dec 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous Integration IO Data IO issues that don't fit into a more specific label
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants