[Bug 2003571] Re: Autopkgtest is failing
Olivier Gayot
2003571 at bugs.launchpad.net
Fri Jan 20 18:18:22 UTC 2023
Successful build on PPA:
https://launchpad.net/~ogayot/+archive/ubuntu/lunar-
proposed/+build/25503889
--
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/2003571
Title:
Autopkgtest is failing
Status in python-ulmo package in Ubuntu:
New
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.
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/python-ulmo/+bug/2003571/+subscriptions
More information about the Ubuntu-sponsors
mailing list