Package: src:zope.testrunner
Version: 6.2-1
Severity: serious
Tags: sid trixie
Forwarded: https://github.com/zopefoundation/zope.testrunner/issues/157
User: debian-pyt...@lists.debian.org
Usertags: python3.12

zope.testrunner fails tests with Python 3.12:

[...]
Failure in test /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/zope/testrunner/tests/testrunner-colors.rst
Failed doctest test for testrunner-colors.rst
File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/zope/testrunner/tests/testrunner-colors.rst", line 0

----------------------------------------------------------------------
File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/zope/testrunner/tests/testrunner-colors.rst", line 165, in testrunner-colors.rst
Failed example:
    _ = testrunner.run_internal(defaults_skip)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python3.12/doctest.py", line 1359, in __run
        exec(compile(example.source, filename, "single",
      File "<doctest testrunner-colors.rst[14]>", line 1, in <module>
        _ = testrunner.run_internal(defaults_skip)
File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/zope/testrunner/__init__.py", line 55, in run_internal
        runner.run()
File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/zope/testrunner/runner.py", line 191, in run
        self.run_tests()
File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/zope/testrunner/runner.py", line 292, in run_tests
        self.ran += run_layer(self.options, layer_name, layer, tests,
File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/zope/testrunner/runner.py", line 473, in run_layer return run_tests(options, tests, layer_name, failures, errors, skipped, File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/zope/testrunner/runner.py", line 399, in run_tests
        test(result)
      File "/usr/lib/python3.12/unittest/case.py", line 692, in __call__
        return self.run(*args, **kwds)
      File "/usr/lib/python3.12/unittest/case.py", line 662, in run
        result.stopTest(self)
File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/zope/testrunner/runner.py", line 1023, in stopTest
        test.__dict__.update(self._test_state)
    AttributeError: 'TestResult' object has no attribute '_test_state'



/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/zope/testrunner/tests/testrunner-simple.rst

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/zope/testrunner/tests/testrunner-nestedcode.rst

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/zope/testrunner/tests/testrunner-test-selection.rst

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/zope/testrunner/tests/testrunner-verbose.rst

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/zope/testrunner/tests/testrunner-repeat.rst

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/zope/testrunner/tests/testrunner-knit.rst

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/zope/testrunner/tests/testrunner-shuffle.rst

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/zope/testrunner/tests/testrunner-stops-when-stop-on-error.rst

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/zope/testrunner/tests/testrunner-new-threads.rst
 TestTrace (zope.testrunner.coverage)
 normalize_package (zope.testrunner.options)
 StartUpFailure (zope.testrunner.find)

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/zope/testrunner/tests/testrunner-gc.rst

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/zope/testrunner/tests/testrunner-wo-source.rst

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/zope/testrunner/tests/testrunner-profiling.rst

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/zope/testrunner/tests/testrunner-profiling-cprofiler.rst

/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/zope/testrunner/tests/testrunner-report-skipped.rst

Failure in test /<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/zope/testrunner/tests/testrunner-report-skipped.rst
Failed doctest test for testrunner-report-skipped.rst
File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/zope/testrunner/tests/testrunner-report-skipped.rst", line 0

----------------------------------------------------------------------
File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/zope/testrunner/tests/testrunner-report-skipped.rst", line 26, in testrunner-report-skipped.rst
Failed example:
    testrunner.run_internal(defaults + ["-t", "TestSkipppedNoLayer"])
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python3.12/doctest.py", line 1359, in __run
        exec(compile(example.source, filename, "single",
File "<doctest testrunner-report-skipped.rst[5]>", line 1, in <module>
        testrunner.run_internal(defaults + ["-t", "TestSkipppedNoLayer"])
File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/zope/testrunner/__init__.py", line 55, in run_internal
        runner.run()
File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/zope/testrunner/runner.py", line 191, in run
        self.run_tests()
File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/zope/testrunner/runner.py", line 292, in run_tests
        self.ran += run_layer(self.options, layer_name, layer, tests,
File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/zope/testrunner/runner.py", line 473, in run_layer return run_tests(options, tests, layer_name, failures, errors, skipped, File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/zope/testrunner/runner.py", line 399, in run_tests
        test(result)
      File "/usr/lib/python3.12/unittest/case.py", line 692, in __call__
        return self.run(*args, **kwds)
      File "/usr/lib/python3.12/unittest/case.py", line 662, in run
        result.stopTest(self)
File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/zope/testrunner/runner.py", line 1023, in stopTest
        test.__dict__.update(self._test_state)
    AttributeError: 'TestResult' object has no attribute '_test_state'
----------------------------------------------------------------------
File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/zope/testrunner/tests/testrunner-report-skipped.rst", line 37, in testrunner-report-skipped.rst
Failed example:
    testrunner.run_internal(defaults)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python3.12/doctest.py", line 1359, in __run
        exec(compile(example.source, filename, "single",
File "<doctest testrunner-report-skipped.rst[6]>", line 1, in <module>
        testrunner.run_internal(defaults)
File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/zope/testrunner/__init__.py", line 55, in run_internal
        runner.run()
File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/zope/testrunner/runner.py", line 191, in run
        self.run_tests()
File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/zope/testrunner/runner.py", line 292, in run_tests
        self.ran += run_layer(self.options, layer_name, layer, tests,
File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/zope/testrunner/runner.py", line 473, in run_layer return run_tests(options, tests, layer_name, failures, errors, skipped, File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/zope/testrunner/runner.py", line 399, in run_tests
        test(result)
      File "/usr/lib/python3.12/unittest/case.py", line 692, in __call__
        return self.run(*args, **kwds)
      File "/usr/lib/python3.12/unittest/case.py", line 662, in run
        result.stopTest(self)
File "/<<PKGBUILDDIR>>/.pybuild/cpython3_3.12/build/zope/testrunner/runner.py", line 1023, in stopTest
        test.__dict__.update(self._test_state)
    AttributeError: 'TestResult' object has no attribute '_test_state'

Reply via email to