Bug#1056242: distro-info's autopkg tests fail with Python 3.12

2023-11-24 Thread Benjamin Drung
On Sun, 2023-11-19 at 12:47 +0100, Matthias Klose wrote:
> Package: src:distro-info
> Version: 3.12.1+dfsg3-5
> Severity: important
> Tags: sid trixie
> User: debian-pyt...@lists.debian.org
> Usertags: python3.12
> 
> distro-info's autopkg tests fail with Python 3.12, although that might 
> be an error in flake.
> 
> [...]
> 
> 727s Test: Run flake8 on Python source code. ... Running following command:
> 727s /usr/bin/python3.12 -m flake8 --max-line-length=99 
> debian-distro-info ubuntu-distro-info distro_info_test 
> /usr/lib/python3/dist-packages/distro_info.py setup.py
> 727s FAIL
> 727s test_isort (distro_info_test.test_isort.IsortTestCase.test_isort)
> 727s Test: Run isort on Python source code. ... Running following command:
> 727s isort --check-only --diff -l 99 debian-distro-info 
> ubuntu-distro-info distro_info_test 
> /usr/lib/python3/dist-packages/distro_info.py setup.py
> 727s ok
> 727s test_mypy (distro_info_test.test_mypy.MypyTestCase.test_mypy)
> 727s Test: Run mypy on Python source code. ... Running following command:
> 727s mypy --ignore-missing-imports --strict distro_info_test setup.py
> 729s ok
> 729s test_pylint (distro_info_test.test_pylint.PylintTestCase.test_pylint)
> 729s Test: Run pylint on Python source code. ... Running following command:
> 729s pylint 
> --rcfile=/tmp/autopkgtest.pk6dzo/autopkgtest_tmp/distro_info_test/pylint.conf 
> debian-distro-info ubuntu-distro-info distro_info_test 
> /usr/lib/python3/dist-packages/distro_info.py setup.py
> 734s ok
> 734s test_make_pep440_compliant_debian_backport 
> (distro_info_test.test_setup.SetupTestCase.test_make_pep440_compliant_debian_backport)
> 734s Test make_pep440_compliant() with Debian backport version. ... ok
> 734s test_make_pep440_compliant_debian_stable 
> (distro_info_test.test_setup.SetupTestCase.test_make_pep440_compliant_debian_stable)
> 734s Test make_pep440_compliant() with Debian stable update. ... ok
> 734s test_make_pep440_compliant_debian_stable_backport 
> (distro_info_test.test_setup.SetupTestCase.test_make_pep440_compliant_debian_stable_backport)
> 734s Test make_pep440_compliant() with Debian stable backport. ... ok
> 734s test_make_pep440_compliant_tilde 
> (distro_info_test.test_setup.SetupTestCase.test_make_pep440_compliant_tilde)
> 734s Test make_pep440_compliant() with tilde in Debian version. ... ok
> 734s test_make_pep440_compliant_ubuntu 
> (distro_info_test.test_setup.SetupTestCase.test_make_pep440_compliant_ubuntu)
> 734s Test make_pep440_compliant() with Ubuntu version. ... ok
> 734s test_make_pep440_compliant_ubuntu_backport 
> (distro_info_test.test_setup.SetupTestCase.test_make_pep440_compliant_ubuntu_backport)
> 734s Test make_pep440_compliant() with Ubuntu backport version. ... ok
> 734s test_make_pep440_compliant_ubuntu_security 
> (distro_info_test.test_setup.SetupTestCase.test_make_pep440_compliant_ubuntu_security)
> 734s Test make_pep440_compliant() with Ubuntu security update. ... ok
> 734s test_make_pep440_compliant_unchanged 
> (distro_info_test.test_setup.SetupTestCase.test_make_pep440_compliant_unchanged)
> 734s Test make_pep440_compliant() with already correct version. ... ok
> 734s
> 734s ==
> 734s FAIL: test_flake8 
> (distro_info_test.test_flake8.Flake8TestCase.test_flake8)
> 734s Test: Run flake8 on Python source code.
> 734s --
> 734s Traceback (most recent call last):
> 734s   File 
> "/tmp/autopkgtest.pk6dzo/autopkgtest_tmp/distro_info_test/test_flake8.py", 
> line 53, in test_flake8
> 734s self.fail("\n".join(msgs))
> 734s AssertionError: flake8 found issues:
> 734s distro_info_test/test_mypy.py:44:57: E231 missing whitespace after ':'
> 734s distro_info_test/test_mypy.py:52:51: E231 missing whitespace after ':'
> 734s distro_info_test/test_mypy.py:55:48: E231 missing whitespace after ':'
> 734s distro_info_test/test_flake8.py:36:57: E231 missing whitespace 
> after ':'
> 734s distro_info_test/test_flake8.py:44:51: E231 missing whitespace 
> after ':'
> 734s distro_info_test/test_flake8.py:47:50: E231 missing whitespace 
> after ':'
> 734s distro_info_test/test_black.py:35:57: E231 missing whitespace after ':'
> 734s distro_info_test/test_black.py:39:65: E231 missing whitespace after ':'
> 734s distro_info_test/test_black.py:41:68: E231 missing whitespace after ':'
> 734s distro_info_test/test_pylint.py:41:57: E231 missing whitespace 
> after ':'
> 734s distro_info_test/test_pylint.py:61:58: E231 missing whitespace 
> after ':'
> 734s distro_info_test/test_pylint.py:64:50: E231 missing whitespace 
> after ':'
> 734s distro_info_test/test_help.py:76:29: E231 missing whitespace after ':'
> 734s distro_info_test/test_isort.py:35:57: E231 missing whitespace after ':'
> 734s distro_info_test/test_isort.py:39:71: E231 missing whitespace after ':'
> 734s
> 734s --
> 734s 

Bug#1056242: distro-info's autopkg tests fail with Python 3.12

2023-11-19 Thread Matthias Klose

Package: src:distro-info
Version: 3.12.1+dfsg3-5
Severity: important
Tags: sid trixie
User: debian-pyt...@lists.debian.org
Usertags: python3.12

distro-info's autopkg tests fail with Python 3.12, although that might 
be an error in flake.


[...]

727s Test: Run flake8 on Python source code. ... Running following command:
727s /usr/bin/python3.12 -m flake8 --max-line-length=99 
debian-distro-info ubuntu-distro-info distro_info_test 
/usr/lib/python3/dist-packages/distro_info.py setup.py

727s FAIL
727s test_isort (distro_info_test.test_isort.IsortTestCase.test_isort)
727s Test: Run isort on Python source code. ... Running following command:
727s isort --check-only --diff -l 99 debian-distro-info 
ubuntu-distro-info distro_info_test 
/usr/lib/python3/dist-packages/distro_info.py setup.py

727s ok
727s test_mypy (distro_info_test.test_mypy.MypyTestCase.test_mypy)
727s Test: Run mypy on Python source code. ... Running following command:
727s mypy --ignore-missing-imports --strict distro_info_test setup.py
729s ok
729s test_pylint (distro_info_test.test_pylint.PylintTestCase.test_pylint)
729s Test: Run pylint on Python source code. ... Running following command:
729s pylint 
--rcfile=/tmp/autopkgtest.pk6dzo/autopkgtest_tmp/distro_info_test/pylint.conf 
debian-distro-info ubuntu-distro-info distro_info_test 
/usr/lib/python3/dist-packages/distro_info.py setup.py

734s ok
734s test_make_pep440_compliant_debian_backport 
(distro_info_test.test_setup.SetupTestCase.test_make_pep440_compliant_debian_backport)

734s Test make_pep440_compliant() with Debian backport version. ... ok
734s test_make_pep440_compliant_debian_stable 
(distro_info_test.test_setup.SetupTestCase.test_make_pep440_compliant_debian_stable)

734s Test make_pep440_compliant() with Debian stable update. ... ok
734s test_make_pep440_compliant_debian_stable_backport 
(distro_info_test.test_setup.SetupTestCase.test_make_pep440_compliant_debian_stable_backport)

734s Test make_pep440_compliant() with Debian stable backport. ... ok
734s test_make_pep440_compliant_tilde 
(distro_info_test.test_setup.SetupTestCase.test_make_pep440_compliant_tilde)

734s Test make_pep440_compliant() with tilde in Debian version. ... ok
734s test_make_pep440_compliant_ubuntu 
(distro_info_test.test_setup.SetupTestCase.test_make_pep440_compliant_ubuntu)

734s Test make_pep440_compliant() with Ubuntu version. ... ok
734s test_make_pep440_compliant_ubuntu_backport 
(distro_info_test.test_setup.SetupTestCase.test_make_pep440_compliant_ubuntu_backport)

734s Test make_pep440_compliant() with Ubuntu backport version. ... ok
734s test_make_pep440_compliant_ubuntu_security 
(distro_info_test.test_setup.SetupTestCase.test_make_pep440_compliant_ubuntu_security)

734s Test make_pep440_compliant() with Ubuntu security update. ... ok
734s test_make_pep440_compliant_unchanged 
(distro_info_test.test_setup.SetupTestCase.test_make_pep440_compliant_unchanged)

734s Test make_pep440_compliant() with already correct version. ... ok
734s
734s ==
734s FAIL: test_flake8 
(distro_info_test.test_flake8.Flake8TestCase.test_flake8)

734s Test: Run flake8 on Python source code.
734s --
734s Traceback (most recent call last):
734s   File 
"/tmp/autopkgtest.pk6dzo/autopkgtest_tmp/distro_info_test/test_flake8.py", 
line 53, in test_flake8

734s self.fail("\n".join(msgs))
734s AssertionError: flake8 found issues:
734s distro_info_test/test_mypy.py:44:57: E231 missing whitespace after ':'
734s distro_info_test/test_mypy.py:52:51: E231 missing whitespace after ':'
734s distro_info_test/test_mypy.py:55:48: E231 missing whitespace after ':'
734s distro_info_test/test_flake8.py:36:57: E231 missing whitespace 
after ':'
734s distro_info_test/test_flake8.py:44:51: E231 missing whitespace 
after ':'
734s distro_info_test/test_flake8.py:47:50: E231 missing whitespace 
after ':'

734s distro_info_test/test_black.py:35:57: E231 missing whitespace after ':'
734s distro_info_test/test_black.py:39:65: E231 missing whitespace after ':'
734s distro_info_test/test_black.py:41:68: E231 missing whitespace after ':'
734s distro_info_test/test_pylint.py:41:57: E231 missing whitespace 
after ':'
734s distro_info_test/test_pylint.py:61:58: E231 missing whitespace 
after ':'
734s distro_info_test/test_pylint.py:64:50: E231 missing whitespace 
after ':'

734s distro_info_test/test_help.py:76:29: E231 missing whitespace after ':'
734s distro_info_test/test_isort.py:35:57: E231 missing whitespace after ':'
734s distro_info_test/test_isort.py:39:71: E231 missing whitespace after ':'
734s
734s --
734s Ran 41 tests in 7.506s
734s
734s FAILED (failures=1)
734s autopkgtest [18:30:59]: test python3-unittest: ---]