Skip to content

TST: Pytables Test Failures #39197

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

Closed
alimcmaster1 opened this issue Jan 15, 2021 · 1 comment · Fixed by #45996
Closed

TST: Pytables Test Failures #39197

alimcmaster1 opened this issue Jan 15, 2021 · 1 comment · Fixed by #45996
Labels
CI Continuous Integration IO HDF5 read_hdf, HDFStore Testing pandas testing functions or related to the test suite

Comments

@alimcmaster1
Copy link
Member

https://dev.azure.com/pandas-dev/pandas/_build/results?buildId=52416&view=logs&j=404760ec-14d3-5d48-e580-13034792878f&t=f81e4cc8-d61a-5fb8-36be-36768e5c561a


setup_path = 'tmp.__ocigUbjgSV__.h5'

    @pytest.mark.filterwarnings(
        "ignore:\\nthe :pandas.io.pytables.AttributeConflictWarning"
    )
    def test_coordinates(setup_path):

            assert (c.values == np.arange(2) + 3).all()
            result = store.select("df", where=c)
            expected = df.loc[3:4, :]
            tm.assert_frame_equal(result, expected)
            assert isinstance(c, Index)
    
            # multiple tables
            _maybe_remove(store, "df1")
            _maybe_remove(store, "df2")
            df1 = tm.makeTimeDataFrame()
            df2 = tm.makeTimeDataFrame().rename(columns="{}_2".format)
            store.append("df1", df1, data_columns=["A", "B"])
            store.append("df2", df2)
    
            c = store.select_as_coordinates("df1", ["A>0", "B>0"])
            df1_result = store.select("df1", c)
            df2_result = store.select("df2", c)
            result = concat([df1_result, df2_result], axis=1)
    
            expected = concat([df1, df2], axis=1)
            expected = expected[(expected.A > 0) & (expected.B > 0)]
>           tm.assert_frame_equal(result, expected)
E           AssertionError: (None, <18 * BusinessDays>)

pandas\tests\io\pytables\test_store.py:653: AssertionError
@alimcmaster1 alimcmaster1 added the Testing pandas testing functions or related to the test suite label Jan 15, 2021
@jreback
Copy link
Contributor

jreback commented Jan 15, 2021

we used to have these tests in a single file
this is now happening after the split

possible we have a collision across files because of the random seed - so the temp files are identical

maybe let's embed the file names in the temp file paths could solve this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
CI Continuous Integration IO HDF5 read_hdf, HDFStore Testing pandas testing functions or related to the test suite
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants