Source: python-testtools
Version: 2.5.0-3
Severity: serious
Justification: FTBFS
Tags: bookworm sid ftbfs
User: lu...@debian.org
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;users=lu...@debian.org
or:
https://udd.debian.org/bugs/?release=na&merged=ign&fnewerval=7&flastmodval=7&fusertag=only&fusertagtag=ftbfs-20221220&fusertaguser=lu...@debian.org&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.

Reply via email to