Autopkgtest is failing

Bug #2003571 reported by Olivier Gayot
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
python-ulmo (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

Recent autopkgtests runs fail with the following errors:

=================================== FAILURES ===================================
__________________________ test_get_stations_as_dicts __________________________

    def test_get_stations_as_dicts():
        with test_util.mocked_urls('ncdc/ghcnd/ghcnd-stations.txt'):
            stations = ghcn_daily.get_stations()
        assert len(stations) > 80000

        for test_station in test_stations:
            station_id = test_station.get('id')
> assert stations.get(station_id) == test_station
E AssertionError: assert {'country': '...': 'HCN', ...} == {'country': '...': 'HCN', ...}
E Omitting 9 identical items, use -vv to show
E Differing items:
E {'longitude': -82.2197} != {'longitude': -82.2203}
E {'elevation': 325.8} != {'elevation': 286.5}
E {'latitude': 34.8833} != {'latitude': 34.8831}
E Use -v to get more diff

test/ghcn_daily_test.py:130: AssertionError
________________________ test_get_stations_as_dataframe ________________________

    def test_get_stations_as_dataframe():
        with test_util.mocked_urls('ncdc/ghcnd/ghcnd-stations.txt'):
            stations = ghcn_daily.get_stations(as_dataframe=True)
        assert len(stations) > 80000

        for test_station in test_stations:
            station_id = test_station.get('id')
            station = stations.xs(station_id)
            station_dict = util.misc._nans_to_nones(station.to_dict())
> assert station_dict == test_station
E AssertionError: assert {'country': '...': 'HCN', ...} == {'country': '...': 'HCN', ...}
E Omitting 9 identical items, use -vv to show
E Differing items:
E {'longitude': -82.2197} != {'longitude': -82.2203}
E {'elevation': 325.8} != {'elevation': 286.5}
E {'latitude': 34.8833} != {'latitude': 34.8831}
E Use -v to get more diff

There is an existing PR upstream which seems to fix the issue:
https://github.com/ulmo-dev/ulmo/pull/214/

The problem also affects Debian and the PR upstream was opened by a Debian contributor.

Revision history for this message
Olivier Gayot (ogayot) wrote :

Adding debdiff. No need to forward to Debian since they opened the PR in the first place.

Revision history for this message
Olivier Gayot (ogayot) wrote :
Revision history for this message
Simon Quigley (tsimonq2) wrote :

Uploaded, thanks. :)

Changed in python-ulmo (Ubuntu):
status: New → Fix Committed
Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package python-ulmo - 0.8.8+dfsg1-1ubuntu2

---------------
python-ulmo (0.8.8+dfsg1-1ubuntu2) lunar; urgency=medium

  * Update GHCN test reference (LP: #2003571)

 -- Olivier Gayot <email address hidden> Fri, 20 Jan 2023 18:42:06 +0100

Changed in python-ulmo (Ubuntu):
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.