GNU bug report logs - #63649
python-zope-exceptions: Build failure (in test_multiline_exception test) with Python 3.10

Previous Next

Package: guix;

Reported by: Ivan Vilata i Balaguer <ivan <at> selidor.net>

Date: Mon, 22 May 2023 16:58:02 UTC

Severity: normal

Done: "jgart" <jgart <at> dismail.de>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: "jgart" <jgart <at> dismail.de>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#63649: closed (python-zope-exceptions: Build failure (in
 test_multiline_exception test) with Python 3.10)
Date: Tue, 23 May 2023 06:31:03 +0000
[Message part 1 (text/plain, inline)]
Your message dated Tue, 23 May 2023 06:30:43 +0000
with message-id <ba384d0d3b5be7722ef434f8199f5c96 <at> dismail.de>
and subject line Re: python-zope-exceptions: Build failure (in test_multiline_exception test) with Python 3.10
has caused the debbugs.gnu.org bug report #63649,
regarding python-zope-exceptions: Build failure (in test_multiline_exception test) with Python 3.10
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
63649: https://debbugs.gnu.org/cgi/bugreport.cgi?bug=63649
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Ivan Vilata i Balaguer <ivan <at> selidor.net>
To: bug-guix <at> gnu.org
Subject: python-zope-exceptions: Build failure (in test_multiline_exception
 test) with Python 3.10
Date: Mon, 22 May 2023 18:57:12 +0200
[Message part 3 (text/plain, inline)]
Hi!  Building `python-zope-exceptions` 4.4 fails in the version of Guix shown below:

```
$ LANG=C guix describe
Generation 56   May 02 2023 11:25:26    (current)
  guix 3f8c489
    repository URL: https://git.savannah.gnu.org/git/guix.git
    branch: master
    commit: 3f8c4899a9a67bb509a603bd21dcfcfab88c0e8e
```

It looks like a Python 3.10 issue fixed in a newer upstream version.  This is
the final part of the build log:

```
starting phase `check'
Running zope.testrunner.layer.UnitTests tests:
  Set up zope.testrunner.layer.UnitTests in 0.000 seconds.


Failure in test test_multiline_exception (zope.exceptions.tests.test_exceptionformatter.Test_format_exception)
Traceback (most recent call last):
  File "/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/unittest/case.py", line 591, in run
    self._callTestMethod(testMethod)
  File "/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/unittest/case.py", line 549, in _callTestMethod
    method()
  File "/gnu/store/yflssryyj355226m2nq5m4971s88cmpz-python-zope-exceptions-bootstrap-4.4/lib/python3.10/site-packages/zope/exceptions/tests/test_exceptionformatter.py", line 670, in test_multiline_exception
    self.assertTrue(lines[1].endswith('    ^'))
  File "/gnu/store/dy3xh053ahkhrp2jamggq8cpsyvp8mg0-python-3.10.7/lib/python3.10/unittest/case.py", line 687, in assertTrue
    raise self.failureException(msg)
AssertionError: False is not true
```

Looking at the failing line, it looks like the commit below fixed it for
Python 3.10 compatibility:
<https://github.com/zopefoundation/zope.exceptions/commit/cb2d21400c95b73909b1145674c08fed31b8759a>

Probably version >= 4.5 of the package (which claims "Add official support for
Python 3.9 and 3.10." does work (I've been unable to figure out the proper
`--with-XXXX` incantation to assert that).

Thanks!

-- 
Ivan Vilata i Balaguer -- https://elvil.net/
[signature.asc (application/pgp-signature, inline)]
[Message part 5 (message/rfc822, inline)]
From: "jgart" <jgart <at> dismail.de>
To: 63649-done <at> debbugs.gnu.org, "Ivan Vilata i Balaguer"
 <ivan <at> selidor.net>
Cc: control <at> debbugs.gnu.org
Subject: Re: python-zope-exceptions: Build failure (in
 test_multiline_exception test) with Python 3.10
Date: Tue, 23 May 2023 06:30:43 +0000
Hi Ivan,

Applied. Thanks!

all best,

jgart


This bug report was last modified 2 years and 3 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.