Skip to content

CI: api.test_api.TestPDApi.test_api fails irrelevantly #26952

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
ihsansecer opened this issue Jun 19, 2019 · 0 comments · Fixed by #26953
Closed

CI: api.test_api.TestPDApi.test_api fails irrelevantly #26952

ihsansecer opened this issue Jun 19, 2019 · 0 comments · Fixed by #26953

Comments

@ihsansecer
Copy link
Contributor

ihsansecer commented Jun 19, 2019

Problem description

In the pull request #26940, I have changed a piece of code in pandas/_libs/window.pyx. Tests pass successfully (including those in tests/api) on my local but not on CI. It seems that hard_dependencies, dependency, missing_dependencies are on the pd namespace and not deleted as supposed (see here). But I don't think changes in #26940 cause this assertion error.

Error (Here)

=================================== FAILURES ===================================
______________________________ TestPDApi.test_api ______________________________
[gw1] linux -- Python 3.7.3 /home/travis/miniconda3/envs/pandas-dev/bin/python
self = <pandas.tests.api.test_api.TestPDApi object at 0x7f2145f522e8>
    def test_api(self):
    
        self.check(pd,
                   self.lib + self.misc +
                   self.modules + self.deprecated_modules +
                   self.classes + self.deprecated_classes +
                   self.deprecated_classes_in_future +
                   self.funcs + self.funcs_option +
                   self.funcs_read + self.funcs_to +
                   self.deprecated_funcs_in_future +
                   self.deprecated_funcs + self.private_modules,
>                  self.ignored)
pandas/tests/api/test_api.py:113: 
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
pandas/tests/api/test_api.py:18: in check
    tm.assert_almost_equal(result, expected)
pandas/util/testing.py:325: in assert_almost_equal
    **kwargs)
pandas/_libs/testing.pyx:65: in pandas._libs.testing.assert_almost_equal
    cpdef assert_almost_equal(a, b,
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ 
>   raise_assert_detail(obj, '{0} length are different'.format(obj),
E   AssertionError: Iterable are different
E   
E   Iterable length are different
E   [left]:  132
E   [right]: 129
E   [diff]: ['dependency', 'missing_dependencies', 'hard_dependencies']
pandas/_libs/testing.pyx:163: AssertionError
TomAugspurger added a commit to TomAugspurger/pandas that referenced this issue Jun 20, 2019
I'm not sure what, but the missing depedency test is
causing issues. Now we check that things work by running
it in a subprocess with site-packages disabled.

Closes pandas-dev#26952
TomAugspurger added a commit that referenced this issue Jun 20, 2019
* TST: Fix flaky import test

I'm not sure what, but the missing depedency test is
causing issues. Now we check that things work by running
it in a subprocess with site-packages disabled.

Closes #26952
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant