[Python-modules-team] Bug#955000: azure-cli: Autopkgtest failure in unstable

Luca Boccassi bluca at debian.org
Fri Mar 27 17:00:55 GMT 2020


Control: reassign -1 python3-humanfriendly 8.1-2

> Package: azure-cli
> Version: 2.0.81+ds-3
> Severity: serious
> Tags: ftbfs
> Justification: fails to build from source (but built successfully in
> the past)
> 
> Note: Using the FTBFS tag because it is the closest one we have.
> 
> Now that humanfriendly is fixed to provide the missing files, azure-
> cli
> has what looks like a real test failure [1].  Here's the relevant log
> extract:
> 
> =================================== FAILURES
> ===================================
> ______________ TestProgress.test_progress_indicator_indet_stdview
> ______________
> 
> self = <tests_core.test_progress.TestProgress
> testMethod=test_progress_indicator_indet_stdview>
> 
>     def test_progress_indicator_indet_stdview(self):
>         # tests the indeterminate progress standardout view
>         outstream = MockOutstream()
>         view = progress.IndeterminateStandardOut(out=outstream)
>         view.write({})
>         self.assertEqual(view.spinner.label, 'In Progress')
>         before = view.spinner.total
>         view.write({})
>         after = view.spinner.total
> >       self.assertTrue(after >= before)
> E       TypeError: '>=' not supported between instances of 'NoneType'
> and 'NoneType'
> 
> ../autopkgtest-
> lxc.r8vnoncs/downtmp/autopkgtest_tmp/tests_core/test_progress.py:63:
> TypeError
> 
> Scott K
> 
> [1] 
> https://ci.debian.net/data/autopkgtest/testing/amd64/a/azure-cli/4686987/log.gz

Hi,

Thanks for the report. Downgrading python3-humanfriendly to buster's
version fixes the issue, so it looks like a backward-incompatible
change in the new version.

Reference to the class using it:

https://salsa.debian.org/python-team/modules/azure-cli/-/blob/debian/sid/src/azure-cli-core/azure/cli/core/commands/progress.py#L104

Test:

https://salsa.debian.org/python-team/modules/azure-cli/-/blob/debian/sid/src/azure-cli-core/azure/cli/core/tests/test_progress.py#L54

Reassigning so the python3-humanfriendly maitainer can have a look.

-- 
Kind regards,
Luca Boccassi
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: This is a digitally signed message part
URL: <http://alioth-lists.debian.net/pipermail/python-modules-team/attachments/20200327/22711c94/attachment.sig>


More information about the Python-modules-team mailing list