Comment 0 for bug 1951519

Revision history for this message
Ark74 (ark74) wrote : ubiquity fails to build (test_timezone)

Description: Ubuntu 20.04.3 LTS
Release: 20.04

When trying to build ubiquity from source,

<code>sudo apt update
sudo apt -y dist-upgrade
sudo apt-get build-dep ubiquity
sudo apt install -y fakeroot
apt source ubiquity
cd ubiquity-*
dpkg-buildpackage -us -uc</code>

<code>
test_has_battery (test_upower.UPowerTests) ... ok
test_check_hostname (test_usersetup.UserSetupTests) ... ok
test_check_username (test_usersetup.UserSetupTests) ... ok
test_default_username (test_usersetup.UserSetupTests) ... ok
test_default_username_strips_invalid_characters (test_usersetup.UserSetupTests) ... ok
test_hostname_check (test_usersetup.UserSetupTests) ... ok
test_hostname_check_bogus_dns (test_usersetup.UserSetupTests) ... ok
test_hostname_check_exists (test_usersetup.UserSetupTests) ... ok
test_unicode (test_usersetup.UserSetupTests) ... ok

======================================================================
FAIL: test_city_entry (test_timezone.TimezoneTests)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3/dist-packages/mock/mock.py", line 1330, in patched
    return func(*args, **keywargs)
  File "/home/ark/ubiquity-20.04.15.17/tests/test_timezone.py", line 58, in test_city_entry
    self.assertEqual(set(results), set(expected))
AssertionError: Items in the first set but not the second:
('Eastern', 'Bahamas')
Items in the second set but not the first:
('Eastern', 'Canada')

----------------------------------------------------------------------
Ran 89 tests in 19.319s

FAILED (failures=1)
xauth/Xrdb output:
make: *** [debian/rules:228: tests] Error 1
dpkg-buildpackage: error: fakeroot debian/rules binary subprocess returned exit status 2
</code>

It keeps failing regardless of release.