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

test_infer_cftime_datetime_units failing on Windows #2521

Closed
shoyer opened this issue Oct 28, 2018 · 0 comments
Closed

test_infer_cftime_datetime_units failing on Windows #2521

shoyer opened this issue Oct 28, 2018 · 0 comments

Comments

@shoyer
Copy link
Member

shoyer commented Oct 28, 2018

I don't know why, but this test is now failing on Python 2.7 / Windows: https://ci.appveyor.com/project/shoyer/xray/builds/19850608

================================== FAILURES ===================================
______________________ test_infer_cftime_datetime_units _______________________
    @pytest.mark.skipif(not has_cftime_or_netCDF4, reason='cftime not installed')
    def test_infer_cftime_datetime_units():
        date_types = _all_cftime_date_types()
        for date_type in date_types.values():
            for dates, expected in [
                    ([date_type(1900, 1, 1),
                      date_type(1900, 1, 2)],
                     'days since 1900-01-01 00:00:00.000000'),
                    ([date_type(1900, 1, 1, 12),
                      date_type(1900, 1, 1, 13)],
                     'seconds since 1900-01-01 12:00:00.000000'),
                    ([date_type(1900, 1, 1),
                      date_type(1900, 1, 2),
                      date_type(1900, 1, 2, 0, 0, 1)],
                     'seconds since 1900-01-01 00:00:00.000000'),
                    ([date_type(1900, 1, 1),
                      date_type(1900, 1, 2, 0, 0, 0, 5)],
                     'days since 1900-01-01 00:00:00.000000'),
                    ([date_type(1900, 1, 1), date_type(1900, 1, 8),
                      date_type(1900, 1, 16)],
                     'days since 1900-01-01 00:00:00.000000')]:
>               assert expected == coding.times.infer_datetime_units(dates)
E               AssertionError: assert 'seconds sinc...:00:00.000000' == 'hours since 1...:00:00.000000'
E                 - seconds since 1900-01-01 12:00:00.000000
E                 ?  ------
E                 + hours since 1900-01-01 12:00:00.000000
E                 ? ++++

@spencerkclark please take a look (or we can xfail this if necessary)

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

No branches or pull requests

2 participants