[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1025024: marked as done (python-boto: (autopkgtest) needs update for python3.11: Cannot spec a Mock object)



Your message dated Sat, 17 Dec 2022 07:49:06 +0000
with message-id <E1p6RwQ-00699h-BB@fasolo.debian.org>
and subject line Bug#1025024: fixed in python-boto 2.49.0-4.1
has caused the Debian Bug report #1025024,
regarding python-boto: (autopkgtest) needs update for python3.11: Cannot spec a Mock object
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 owner@bugs.debian.org
immediately.)


-- 
1025024: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1025024
Debian Bug Tracking System
Contact owner@bugs.debian.org with problems
--- Begin Message ---
Source: python-boto
Version: 2.49.0-4
Severity: serious
Tags: sid bookworm
User: debian-ci@lists.debian.org
Usertags: needs-update
User: debian-python@lists.debian.org
Usertags: python3.11
Control: affects -1 src:python3-defaults

Dear maintainer(s),

We are in the transition of adding python3.11 as a supported Python version [0]. With a recent upload of python3-defaults the autopkgtest of python-boto fails in testing when that autopkgtest is run with the binary packages of python3-defaults from unstable. It passes when run with only packages from testing. In tabular form:

                       pass            fail
python3-defaults       from testing    3.10.6-3
python-boto            from testing    2.49.0-4
all others             from testing    from testing

I copied some of the output at the bottom of this report.

Currently this regression is blocking the migration of python3-defaults to testing [1]. https://docs.python.org/3/whatsnew/3.11.html lists what's new in Python3.11, it may help to identify what needs to be updated.

More information about this bug and the reason for filing it can be found on
https://wiki.debian.org/ContinuousIntegration/RegressionEmailInformation

Paul

[0] https://bugs.debian.org/1021984
[1] https://qa.debian.org/excuses.php?package=python3-defaults

https://ci.debian.net/data/autopkgtest/testing/amd64/p/python-boto/28728883/log.gz

...........................................................................................................................................................................................................................S...S.........................................................................................................................................................................................................................................................................................................................E...................................................S............................................................................S..........................................................................................................................................................................................................................................................................................SS...........................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................................
======================================================================
ERROR: test_startElement_with_name_tagSet_calls_ResultSet (tests.unit.ec2.test_volume.VolumeTests.test_startElement_with_name_tagSet_calls_ResultSet)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/usr/lib/python3.11/unittest/mock.py", line 1369, in patched
    return func(*newargs, **newkeywargs)
           ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/tmp/autopkgtest-lxc.q5fss7zd/downtmp/autopkgtest_tmp/tests/unit/ec2/test_volume.py", line 58, in test_startElement_with_name_tagSet_calls_ResultSet
    result_set = mock.Mock(ResultSet([("item", Tag)]))
                 ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3.11/unittest/mock.py", line 1100, in __init__
    _safe_super(CallableMixin, self).__init__(
  File "/usr/lib/python3.11/unittest/mock.py", line 451, in __init__
    self._mock_add_spec(spec, spec_set, _spec_as_instance, _eat_self)
  File "/usr/lib/python3.11/unittest/mock.py", line 502, in _mock_add_spec
    raise InvalidSpecError(f'Cannot spec a Mock object. [object={spec!r}]')
unittest.mock.InvalidSpecError: Cannot spec a Mock object. [object=<MagicMock name='ResultSet()' id='140001719052112'>]

----------------------------------------------------------------------
Ran 1730 tests in 4.059s

FAILED (SKIP=6, errors=1)
autopkgtest [23:01:58]: test unit

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


--- End Message ---
--- Begin Message ---
Source: python-boto
Source-Version: 2.49.0-4.1
Done: Jochen Sprickerhof <jspricke@debian.org>

We believe that the bug you reported is fixed in the latest version of
python-boto, 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 1025024@bugs.debian.org,
and the maintainer will reopen the bug report if appropriate.

Debian distribution maintenance software
pp.
Jochen Sprickerhof <jspricke@debian.org> (supplier of updated python-boto 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 ftpmaster@ftp-master.debian.org)


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Format: 1.8
Date: Thu, 15 Dec 2022 07:50:01 +0100
Source: python-boto
Architecture: source
Version: 2.49.0-4.1
Distribution: unstable
Urgency: medium
Maintainer: Debian Cloud Team <debian-cloud@lists.debian.org>
Changed-By: Jochen Sprickerhof <jspricke@debian.org>
Closes: 1025024
Changes:
 python-boto (2.49.0-4.1) unstable; urgency=medium
 .
   * Non-maintainer upload.
   * Add patch to fix autopkgtests (Closes: #1025024)
Checksums-Sha1:
 1b7783b181482c6a1cea71dae5d771a4222cc113 2170 python-boto_2.49.0-4.1.dsc
 e166c81802d3bba0117a0110ca5bed6565afbf7b 7852 python-boto_2.49.0-4.1.debian.tar.xz
 54c49048d504d3ecc625d07c9e8566bfcc60e0ce 7149 python-boto_2.49.0-4.1_source.buildinfo
Checksums-Sha256:
 66f43a39600464416b22c339769150522c4570c04843c76ddf8c911a268f5ee2 2170 python-boto_2.49.0-4.1.dsc
 5d1312728460d8bd34eee25567ae7bea5e2a7a5fb8e49a7fbb2b82e9519e1a16 7852 python-boto_2.49.0-4.1.debian.tar.xz
 d6f267ae654108ad9c156f7b169b90560b13a60ef913cdb2b9c14486b19a99fc 7149 python-boto_2.49.0-4.1_source.buildinfo
Files:
 1fcc7b16eb1db295690cdc76f0ea4ae3 2170 python optional python-boto_2.49.0-4.1.dsc
 54cdeaeb9320b3bb1f51117f570fbd87 7852 python optional python-boto_2.49.0-4.1.debian.tar.xz
 ffaa9a7d71e07aafb3df3d527cc74617 7149 python optional python-boto_2.49.0-4.1_source.buildinfo

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

iQJIBAEBCgAyFiEEc7KZy9TurdzAF+h6W//cwljmlDMFAmOdcHsUHGpzcHJpY2tl
QGRlYmlhbi5vcmcACgkQW//cwljmlDPY9Q//aIIQdT8Km71FA6xa3PkT1sTcMsdT
aktjX1/EtCE8WXesPxIdWUP+lB6H/sX8x8exrBPSb/9Inv6W7aw/WH9WGBWnTA/7
QSYmsXUom0o0ETXJBhoSCxwZDH6n2VBDYWlfUZZ33vTMdeSsdZPfW//GHojDXms3
tQMWlQLg8G8ejBeU4W+jKe3j7IFVFPpwbJr1S7PZ49p7O9G5RLVeOPPdr5MC9V4k
z/3PbIpmIaKpru4+TEMhep5e9+eWTiTOgUyg7e4VDb1cpWCJ7LN5AsEOaydKi/Bu
eFrzQxyMhW2ql625w9K2LLnHul6uAPLlr/glkeWf1AgYy/Lm1NLJQjVHPXUbJRoW
SL7WgWl7n9onUNeRQQse++xlA9m5duKD1Vw2/M3mPvf8YxIvycHt6sOXm3bHnZz8
AXk1AeBs/Q0NbQb/xtWf1H0kljYRIk8Z7bIHqN6veZwKoxFYMAV4Cj0DvFzHlq8N
Isemx5uG+PWf/tYT1Ldah4GF+H5/uAwV1rGxVV9JZd8VfSC6dDmt2xmk0l8/Wenn
TsX4MbNqDOnL7f07MmAq3ItJJ1Ub1lmeFWDwMfko373wM09qLYPfTYxNc0wE1Lvu
N1Q8skBi90VU4cZ1SAp/+vnthoU0N8AxM2K3MKx+wTrPFr9tdi675Wh7wcaSO9jy
968vtLhX9bcCieA=
=cKUb
-----END PGP SIGNATURE-----

--- End Message ---

Reply to: