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

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



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


Reply to: