ACK/APPLIED/cmnt: [PATCH][autotest-client-tests] UBUNTU: SAUCE: ubuntu_qrt_apparmor: on Groovy+, invoke the test using python3

Paolo Pisati paolo.pisati at canonical.com
Tue Sep 8 14:15:09 UTC 2020


On Tue, Sep 8, 2020 at 11:30 AM Po-Hsu Lin <po-hsu.lin at canonical.com> wrote:
>
> One small note, platform.dist() has been deprecated since python 3.5
> Since we might need to migrate from python2 to python3 for our testing
> infrastructure one day in the future, for the long term perspective
> it's safter to use the following:
>
>    try:
>        series = platform.dist()[2]
>    except AttributeError:
>        import distro
>        series = distro.codename()

Good to know, thanks.
-- 
bye,
p.



More information about the kernel-team mailing list