Skip to content

click/click_package/tests/database.py: Unit test_ensure_ownership_quick_if_correct started failing in Debian with introduction of Python 3.10

In Debian, click 0.5.0-4 started failing with the introduction of Python 3.10 as the default Python3 version.

test_ensure_ownership_quick_if_correct (click_package.tests.test_database.TestClickSingleDB) ... b'Traceback (most recent call last):\n  File "/<<PKGBUILDDIR>>/click_package/tests/gimock.py", line 497, in run_in_subprocess\n    yield partial(helper, lib_path, rpreloads), preloads\n  File "/<<PKGBUILDDIR>>/click_package/tests/test_database.py", line 512, in test_ensure_ownership_quick_if_correct\n    self.assertFalse(preloads["chown"].called)\n  File "/usr/lib/python3.10/unittest/case.py", line 681, in assertFalse\n    raise self.failureException(msg)\nAssertionError: True is not false\n'
FAIL