Your message dated Tue, 27 Dec 2022 21:42:34 +0000
with message-id <[email protected]>
and subject line Bug#1026579: fixed in python-testtools 2.5.0-4
has caused the Debian Bug report #1026579,
regarding python-testtools: FTBFS: tests failed
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)


-- 
1026579: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1026579
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Source: python-testtools
Version: 2.5.0-3
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: [email protected]
Usertags: ftbfs-20221220 ftbfs-bookworm

Hi,

During a rebuild of all packages in sid, your package failed to build
on amd64.


Relevant part (hopefully):
> make[1]: Entering directory '/<<PKGBUILDDIR>>'
> make[1]: pyversions: No such file or directory
> py3versions: no X-Python3-Version in control file, using supported versions
> set -ex ; for pyvers in 3.11 3.10; do \
>       PYTHONPATH=/<<PKGBUILDDIR>> PYTHON=python$pyvers python$pyvers -m 
> testtools.run testtools.tests.test_suite ; \
> done
> + PYTHONPATH=/<<PKGBUILDDIR>> PYTHON=python3.11 python3.11 -m testtools.run 
> testtools.tests.test_suite
> <frozen runpy>:128: RuntimeWarning: 'testtools.run' found in sys.modules 
> after import of package 'testtools', but prior to execution of 
> 'testtools.run'; this may result in unpredictable behaviour
> Tests running...
> ======================================================================
> ERROR: testtools.tests.test_distutilscmd.TestCommandTest.test_test_module
> ----------------------------------------------------------------------
> Empty attachments:
>   stdout
> 
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/testtools/tests/test_distutilscmd.py", line 61, in 
> test_test_module
>     dist.run_command('test')
>   File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 1213, in 
> run_command
>     self.set_defaults()
>   File "/usr/lib/python3/dist-packages/setuptools/discovery.py", line 340, in 
> __call__
>     self._analyse_package_layout(ignore_ext_modules)
>   File "/usr/lib/python3/dist-packages/setuptools/discovery.py", line 373, in 
> _analyse_package_layout
>     or self._analyse_flat_layout()
>        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/setuptools/discovery.py", line 430, in 
> _analyse_flat_layout
>     return self._analyse_flat_packages() or self._analyse_flat_modules()
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/setuptools/discovery.py", line 436, in 
> _analyse_flat_packages
>     self._ensure_no_accidental_inclusion(top_level, "packages")
>   File "/usr/lib/python3/dist-packages/setuptools/discovery.py", line 466, in 
> _ensure_no_accidental_inclusion
>     raise PackageDiscoveryError(cleandoc(msg))
> setuptools.errors.PackageDiscoveryError: Multiple top-level packages 
> discovered in a flat-layout: ['debian', 'testtools'].
> 
> To avoid accidental inclusion of unwanted files or directories,
> setuptools will not proceed with this build.
> 
> If you are trying to create a single distribution with multiple packages
> on purpose, you should not rely on automatic discovery.
> Instead, consider the following options:
> 
> 1. set up custom discovery (`find` directive with `include` or `exclude`)
> 2. use a `src-layout`
> 3. explicitly set `py_modules` or `packages` with a list of names
> 
> To find more information, look for "package discovery" on setuptools docs.
> ======================================================================
> ERROR: testtools.tests.test_distutilscmd.TestCommandTest.test_test_suite
> ----------------------------------------------------------------------
> Empty attachments:
>   stdout
> 
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/testtools/tests/test_distutilscmd.py", line 83, in 
> test_test_suite
>     dist.run_command('test')
>   File "/usr/lib/python3/dist-packages/setuptools/dist.py", line 1213, in 
> run_command
>     self.set_defaults()
>   File "/usr/lib/python3/dist-packages/setuptools/discovery.py", line 340, in 
> __call__
>     self._analyse_package_layout(ignore_ext_modules)
>   File "/usr/lib/python3/dist-packages/setuptools/discovery.py", line 373, in 
> _analyse_package_layout
>     or self._analyse_flat_layout()
>        ^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/setuptools/discovery.py", line 430, in 
> _analyse_flat_layout
>     return self._analyse_flat_packages() or self._analyse_flat_modules()
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/usr/lib/python3/dist-packages/setuptools/discovery.py", line 436, in 
> _analyse_flat_packages
>     self._ensure_no_accidental_inclusion(top_level, "packages")
>   File "/usr/lib/python3/dist-packages/setuptools/discovery.py", line 466, in 
> _ensure_no_accidental_inclusion
>     raise PackageDiscoveryError(cleandoc(msg))
> setuptools.errors.PackageDiscoveryError: Multiple top-level packages 
> discovered in a flat-layout: ['debian', 'testtools'].
> 
> To avoid accidental inclusion of unwanted files or directories,
> setuptools will not proceed with this build.
> 
> If you are trying to create a single distribution with multiple packages
> on purpose, you should not rely on automatic discovery.
> Instead, consider the following options:
> 
> 1. set up custom discovery (`find` directive with `include` or `exclude`)
> 2. use a `src-layout`
> 3. explicitly set `py_modules` or `packages` with a list of names
> 
> To find more information, look for "package discovery" on setuptools docs.
> ======================================================================
> FAIL: testtools.tests.test_run.TestRun.test_run_list_failed_import
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/testtools/tests/test_run.py", line 200, in 
> test_run_list_failed_import
>     self.assertThat(out.getvalue(), DocTestMatches("""\
>   File "/<<PKGBUILDDIR>>/testtools/testcase.py", line 480, in assertThat
>     raise mismatch_error
> testtools.matchers._impl.MismatchError: Expected:
>     unittest.loader._FailedTest.runexample
>     Failed to import test module: runexample
>     Traceback (most recent call last):
>       File ".../loader.py", line ..., in _find_test_path
>         package = self._get_module_from_name(name)
>       File ".../loader.py", line ..., in _get_module_from_name
>         __import__(name)
>       File ".../runexample/__init__.py", line 1
>         class not in
>     ...^...
>     SyntaxError: invalid syntax
> 
> Got:
>     unittest.loader._FailedTest.runexample
>     Failed to import test module: runexample
>     Traceback (most recent call last):
>       File "/usr/lib/python3.11/unittest/loader.py", line 440, in 
> _find_test_path
>         package = self._get_module_from_name(name)
>                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>       File "/usr/lib/python3.11/unittest/loader.py", line 350, in 
> _get_module_from_name
>         __import__(name)
>       File "/tmp/tmpgw1ur8ty/runexample/__init__.py", line 1
>         class not in
>               ^^^
>     SyntaxError: invalid syntax
>     <BLANKLINE>
> ======================================================================
> FAIL: 
> testtools.tests.test_testresult.TestNonAsciiResults.test_unprintable_exception
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/testtools/tests/test_testresult.py", line 2652, in 
> test_unprintable_exception
>     self.assertIn(self._as_output(
>   File "/<<PKGBUILDDIR>>/testtools/testcase.py", line 399, in assertIn
>     self.assertThat(haystack, Contains(needle), message)
>   File "/<<PKGBUILDDIR>>/testtools/testcase.py", line 480, in assertThat
>     raise mismatch_error
> testtools.matchers._impl.MismatchError: 'UnprintableError: <unprintable 
> UnprintableError object>\n' not in 'Tests 
> running...\n======================================================================\nERROR:
>  
> test_unprintable_exception.Test.runTest\n----------------------------------------------------------------------\nTraceback
>  (most recent call last):\n  File 
> "/tmp/TestNonAsciiResultsatlgl4j7/test_unprintable_exception.py", line 13, in 
> runTest\n    raise 
> UnprintableError\ntest_unprintable_exception.UnprintableError: <exception 
> str() failed>\n\nRan 1 test in 0.001s\nFAILED (failures=1)\n'
> ======================================================================
> FAIL: 
> testtools.tests.test_testresult.TestNonAsciiResultsWithUnittest.test_unprintable_exception
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/testtools/tests/test_testresult.py", line 2652, in 
> test_unprintable_exception
>     self.assertIn(self._as_output(
>   File "/<<PKGBUILDDIR>>/testtools/testcase.py", line 399, in assertIn
>     self.assertThat(haystack, Contains(needle), message)
>   File "/<<PKGBUILDDIR>>/testtools/testcase.py", line 480, in assertThat
>     raise mismatch_error
> testtools.matchers._impl.MismatchError: 'UnprintableError: <unprintable 
> UnprintableError object>\n' not in 
> 'E\n======================================================================\nERROR:
>  runTest 
> (test_unprintable_exception.Test.runTest)\ntest_unprintable_exception.Test.runTest\n----------------------------------------------------------------------\ntesttools.testresult.real._StringException:
>  Traceback (most recent call last):\n  File 
> "/tmp/TestNonAsciiResultsWithUnittestlbr8zqug/test_unprintable_exception.py", 
> line 13, in runTest\n    raise 
> UnprintableError\ntest_unprintable_exception.UnprintableError: <exception 
> str() 
> failed>\n\n\n----------------------------------------------------------------------\nRan
>  1 test in 0.000s\n\nFAILED (errors=1)\n'
> ======================================================================
> FAIL: 
> testtools.tests.test_testresult.TestTestResult.test_traceback_formatting_with_stack_hidden
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/testtools/runtest.py", line 193, in _run_user
>     return fn(*args, **kwargs)
>            ^^^^^^^^^^^^^^^^^^^
>   File "/<<PKGBUILDDIR>>/testtools/testcase.py", line 702, in _run_test_method
>     return self._get_test_method()()
>            ^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/<<PKGBUILDDIR>>/testtools/tests/test_testresult.py", line 1282, in 
> test_traceback_formatting_with_stack_hidden
>     self.assertThat(
>   File "/<<PKGBUILDDIR>>/testtools/testcase.py", line 480, in assertThat
>     raise mismatch_error
> testtools.matchers._impl.MismatchError: Expected:
>     Traceback (most recent call last):
>       File "...testtools...tests...test_testresult.py", line ..., in error
>         1/0
>     ZeroDivisionError: ...
> Got:
>     Traceback (most recent call last):
>       File "/<<PKGBUILDDIR>>/testtools/tests/test_testresult.py", line 98, in 
> error
>         1/0
>         ~^~
>     ZeroDivisionError: division by zero
> ======================================================================
> FAIL: 
> testtools.tests.test_testresult.TestTestResult.test_traceback_formatting_without_stack_hidden
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/testtools/runtest.py", line 193, in _run_user
>     return fn(*args, **kwargs)
>            ^^^^^^^^^^^^^^^^^^^
>   File "/<<PKGBUILDDIR>>/testtools/testcase.py", line 702, in _run_test_method
>     return self._get_test_method()()
>            ^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/<<PKGBUILDDIR>>/testtools/tests/test_testresult.py", line 1265, in 
> test_traceback_formatting_without_stack_hidden
>     self.assertThat(
>   File "/<<PKGBUILDDIR>>/testtools/testcase.py", line 480, in assertThat
>     raise mismatch_error
> testtools.matchers._impl.MismatchError: Differences (unified diff with 
> -expected +actual):
>     @@ -1,8 +1,11 @@
>      Traceback (most recent call last):
>     -  File "...testtools...runtest.py", line ..., in _run_user
>     +  File "/<<PKGBUILDDIR>>/testtools/runtest.py", line 193, in _run_user
>          return fn(*args, **kwargs)
>     -  File "...testtools...testcase.py", line ..., in _run_test_method
>     +           ^^^^^^^^^^^^^^^^^^^
>     +  File "/<<PKGBUILDDIR>>/testtools/testcase.py", line 702, in 
> _run_test_method
>          return self._get_test_method()()
>     -  File "...testtools...tests...test_testresult.py", line ..., in error
>     +           ^^^^^^^^^^^^^^^^^^^^^^^^^
>     +  File "/<<PKGBUILDDIR>>/testtools/tests/test_testresult.py", line 98, 
> in error
>          1/0
>     -ZeroDivisionError: ...
>     +    ~^~
>     +ZeroDivisionError: division by zero
> ======================================================================
> FAIL: 
> testtools.tests.test_testresult.TestTestResult.test_traceback_with_locals
> ----------------------------------------------------------------------
> Traceback (most recent call last):
>   File "/<<PKGBUILDDIR>>/testtools/runtest.py", line 193, in _run_user
>     return fn(*args, **kwargs)
>            ^^^^^^^^^^^^^^^^^^^
>   File "/<<PKGBUILDDIR>>/testtools/testcase.py", line 702, in _run_test_method
>     return self._get_test_method()()
>            ^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "/<<PKGBUILDDIR>>/testtools/tests/test_testresult.py", line 1321, in 
> test_traceback_with_locals
>     self.assertThat(
>   File "/<<PKGBUILDDIR>>/testtools/testcase.py", line 480, in assertThat
>     raise mismatch_error
> testtools.matchers._impl.MismatchError: Differences (unified diff with 
> -expected +actual):
>     @@ -1,16 +1,19 @@
>      Traceback (most recent call last):
>     -  File "...testtools...runtest.py", line ..., in _run_user
>     +  File "/<<PKGBUILDDIR>>/testtools/runtest.py", line 193, in _run_user
>          return fn(*args, **kwargs)
>     -    args = ...
>     -    fn = ...
>     -    kwargs = ...
>     -    self = ...
>     -  File "...testtools...testcase.py", line ..., in _run_test_method
>     +           ^^^^^^^^^^^^^^^^^^^
>     +    args = (<ExtendedToOriginalDecorator 
> <testtools.testresult.real.TestResult run=1 errors=0 failures=0>>,)
>     +    fn = <bound method TestCase._run_test_method of 
> <testtools.tests.test_testresult.make_erroring_test.<locals>.Test.error 
> id=0x7f9fdba40090>>
>     +    kwargs = {}
>     +    self = <testtools.runtest.RunTest object at 0x7f9fdba40050>
>     +  File "/<<PKGBUILDDIR>>/testtools/testcase.py", line 702, in 
> _run_test_method
>          return self._get_test_method()()
>     -    result = ...
>     -    self = ...
>     -  File "...testtools...tests...test_testresult.py", line ..., in error
>     +           ^^^^^^^^^^^^^^^^^^^^^^^^^
>     +    result = <ExtendedToOriginalDecorator 
> <testtools.testresult.real.TestResult run=1 errors=0 failures=0>>
>     +    self = 
> <testtools.tests.test_testresult.make_erroring_test.<locals>.Test.error 
> id=0x7f9fdba40090>
>     +  File "/<<PKGBUILDDIR>>/testtools/tests/test_testresult.py", line 98, 
> in error
>          1/0
>     +    ~^~
>          a = 1
>     -    self = ...
>     -ZeroDivisionError: ...
>     +    self = 
> <testtools.tests.test_testresult.make_erroring_test.<locals>.Test.error 
> id=0x7f9fdba40090>
>     +ZeroDivisionError: division by zero
> 
> Ran 2625 tests in 1.043s
> FAILED (failures=8)
> make[1]: *** [debian/rules:36: override_dh_auto_test] Error 1


The full build log is available from:
http://qa-logs.debian.net/2022/12/20/python-testtools_2.5.0-3_unstable.log

All bugs filed during this archive rebuild are listed at:
https://bugs.debian.org/cgi-bin/pkgreport.cgi?tag=ftbfs-20221220;[email protected]
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20221220&[email protected]&allbugs=1&cseverity=1&ctags=1&caffected=1#results

A list of current common problems and possible solutions is available at
http://wiki.debian.org/qa.debian.org/FTBFS . You're welcome to contribute!

If you reassign this bug to another package, please mark it as 'affects'-ing
this package. See https://www.debian.org/Bugs/server-control#affects

If you fail to reproduce this, please provide a build log and diff it with mine
so that we can identify if something relevant changed in the meantime.

--- End Message ---
--- Begin Message ---
Source: python-testtools
Source-Version: 2.5.0-4
Done: Thomas Goirand <[email protected]>

We believe that the bug you reported is fixed in the latest version of
python-testtools, which is due to be installed in the Debian FTP archive.

A summary of the changes between this version and the previous one is
attached.

Thank you for reporting the bug, which will now be closed.  If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Thomas Goirand <[email protected]> (supplier of updated python-testtools package)

(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256

Format: 1.8
Date: Tue, 27 Dec 2022 13:53:30 +0100
Source: python-testtools
Architecture: source
Version: 2.5.0-4
Distribution: unstable
Urgency: medium
Maintainer: Debian OpenStack <[email protected]>
Changed-By: Thomas Goirand <[email protected]>
Closes: 1026579
Changes:
 python-testtools (2.5.0-4) unstable; urgency=medium
 .
   [ Debian Janitor ]
   * Apply multi-arch hints.
     + python-testtools-doc: Add Multi-Arch: foreign.
 .
   [ Thomas Goirand ]
   * Add upstream py3.11 patches (Closes: #1026579):
     - py3.11-Fix_various_test_failures.patch
     - py3.11-Upgrade_asserts_with_teyit.patch
   * Fix testing distutils (my own patch):
     - py3.11-fix-using-distribution.patch
Checksums-Sha1:
 8636db2374b00b913ff0dd0b9030bb405039e022 2394 python-testtools_2.5.0-4.dsc
 72456b46067a491e12b6a2e7aad7ab518f33a7b3 10864 
python-testtools_2.5.0-4.debian.tar.xz
 fead704f00ff39efd45a6eb153664898598942ae 8705 
python-testtools_2.5.0-4_amd64.buildinfo
Checksums-Sha256:
 3c184a4f2b7ccbd21f261a335197e7cd4fb7c66654922f184329045e8b91fcf9 2394 
python-testtools_2.5.0-4.dsc
 989f03c613218362b6a2eca28d9fbd3b41f4ddfb7e82f46e7cebdd1214f0d81b 10864 
python-testtools_2.5.0-4.debian.tar.xz
 57c08ef6dbc265546198df3532d7c7b8953649cd4668a02b204d31c5dc32d1d2 8705 
python-testtools_2.5.0-4_amd64.buildinfo
Files:
 e3dae930758effc8f19a15aedc66b4b5 2394 python optional 
python-testtools_2.5.0-4.dsc
 2fa500da77b4ed2db3c389bf822f7eff 10864 python optional 
python-testtools_2.5.0-4.debian.tar.xz
 03c444a4bfc0efbe89cbb8f8cca707af 8705 python optional 
python-testtools_2.5.0-4_amd64.buildinfo

-----BEGIN PGP SIGNATURE-----

iQIzBAEBCAAdFiEEoLGp81CJVhMOekJc1BatFaxrQ/4FAmOrX9oACgkQ1BatFaxr
Q/4mrA//c2DtnCgJglZKHpA978t4RGFqL4e1wuYT9gS59+VK+6Ml+WYZ7JmBUMvr
iWvRjaDGSmYdz9G7KmADh7fzMX9yaRHYyXahjkVtRRdgA0FzKCg8rKeXmuoZm7US
iAozyZZhIZ+ajbYWBptqxVZAZqVd3kKA7RCao/lLL2Kr6x8jA8PuNo4Qu3y1Uot6
VlJDMNOl0c8qSObV3U87q1GtLbnufATvifY9gVm1dNinKqEmk3lFEKn1fyJ93uvC
kWgCgapkCdKx+0Kcq+HffEV1MGMs7oUjgc/2hCQ/TOVQBwBZtqmD/9zVUzIq3WZt
eSWDlqJ4Ay3YWnPy7xDaFck1Z/qib9ItE4evauRT/rWU5DJAi8bCeyfmMfdkkUSN
tqg9PATBa1dPB58P2lG7pN/6JjpKf/NEUhXDYGZ9w4RFxmI7Mpz3NlXHrL/57pvE
HJv5LmVaftP9FZwIYeX7erZIPuOcAKYmB4vPQK/yrq8iHk3xEvrRNC8T6hJes3Wa
dW1iZ19oLfloN4G/XA4SbU6cNdECsjoj5lr7sbtT/Yy7YKIEEEKz53/izWBeK4oT
lz9HI9qpQgxaKIJoTCvJSLSEc+WyT1vABoLyIrGCnHhj9DqkQnVKuYsOPp8q8V1O
TskJ6eO/yNf/70REA/bHk739By6SIjStcohulZi+xsAKfL9U1Dc=
=C/M/
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to