Your message dated Sat, 11 Dec 2021 03:18:46 +0000
with message-id <e1mvsum-000fhy...@fasolo.debian.org>
and subject line Bug#1001419: fixed in python-css-parser 1.0.6-2
has caused the Debian Bug report #1001419,
regarding python-css-parser: (autopkgtest) needs update for python3.10: Right 
exception, wrong message: got 'can't set attribute 'literalname'' instead of 
'can't set attribute'
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 ow...@bugs.debian.org
immediately.)


-- 
1001419: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1001419
Debian Bug Tracking System
Contact ow...@bugs.debian.org with problems
--- Begin Message ---
Source: python-css-parser
Version: 1.0.6-1
Severity: serious
X-Debbugs-CC: debian...@lists.debian.org
Tags: sid bookworm
User: debian...@lists.debian.org
Usertags: needs-update
User: debian-pyt...@lists.debian.org
Usertags: python3.10
Control: affects -1 src:python3-defaults

Dear maintainer(s),

We are in the transition of adding python3.10 to the supported Python versions [0]. With a recent upload of python3-defaults the autopkgtest of python-css-parser 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.9.8-1
python-css-parser      from testing    1.0.6-1
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.10.html lists what's new in Python3.10, 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/996584
[1] https://qa.debian.org/excuses.php?package=python3-defaults

https://ci.debian.net/data/autopkgtest/testing/amd64/p/python-css-parser/17420647/log.gz

=================================== FAILURES =================================== ______________________ PropertyTestCase.test_literalname _______________________

self = <css_parser_tests.test_property.PropertyTestCase testMethod=test_literalname>
excClass = <class 'AttributeError'>, msg = "can't set attribute"
callableObj = <method-wrapper '__setattr__' of Property object at 0x7fd187f22d10>
args = ('literalname', 'color'), kwargs = {}
excMsg = "can't set attribute 'literalname'"

    def assertRaisesMsg(self, excClass, msg, callableObj, *args, **kwargs):
        """
        Just like unittest.TestCase.assertRaises,
        but checks that the message is right too.
            Usage::
                self.assertRaisesMsg(
                MyException, "Exception message",
                my_function, (arg1, arg2)
                )
            from
        http://www.nedbatchelder.com/blog/200609.html#e20060905T064418
        """
        try:
          callableObj(*args, **kwargs)
E           AttributeError: can't set attribute 'literalname'

/tmp/autopkgtest-lxc.ysif6shm/downtmp/autopkgtest_tmp/python-css-parser/css_parser_tests/basetest.py:168: AttributeError

During handling of the above exception, another exception occurred:

self = <css_parser_tests.test_property.PropertyTestCase testMethod=test_literalname>

    def test_literalname(self):
        "Property.literalname"
        p = css_parser.css.property.Property(r'c\olor', 'red')
        self.assertEqual(r'c\olor', p.literalname)
      self.assertRaisesMsg(AttributeError, "can't set attribute", p.__setattr__,
                             'literalname', 'color')

/tmp/autopkgtest-lxc.ysif6shm/downtmp/autopkgtest_tmp/python-css-parser/css_parser_tests/test_property.py:165: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <css_parser_tests.test_property.PropertyTestCase testMethod=test_literalname>
excClass = <class 'AttributeError'>, msg = "can't set attribute"
callableObj = <method-wrapper '__setattr__' of Property object at 0x7fd187f22d10>
args = ('literalname', 'color'), kwargs = {}
excMsg = "can't set attribute 'literalname'"

    def assertRaisesMsg(self, excClass, msg, callableObj, *args, **kwargs):
        """
        Just like unittest.TestCase.assertRaises,
        but checks that the message is right too.
            Usage::
                self.assertRaisesMsg(
                MyException, "Exception message",
                my_function, (arg1, arg2)
                )
            from
        http://www.nedbatchelder.com/blog/200609.html#e20060905T064418
        """
        try:
            callableObj(*args, **kwargs)
        except excClass as exc:
            excMsg = str(exc)
            if not msg:
                # No message provided: any message is fine.
                return
            elif excMsg == msg:
                # Message provided, and we got the right message: passes.
                return
            else:
                # Message provided, and it didn't match: fail!
              raise self.failureException(
"Right exception, wrong message: got '%s' instead of '%s'" %
                    (excMsg, msg))
E AssertionError: Right exception, wrong message: got 'can't set attribute 'literalname'' instead of 'can't set attribute'

/tmp/autopkgtest-lxc.ysif6shm/downtmp/autopkgtest_tmp/python-css-parser/css_parser_tests/basetest.py:179: AssertionError ______________________ SelectorTestCase.test_specificity _______________________

self = <css_parser_tests.test_selector.SelectorTestCase testMethod=test_specificity>
excClass = <class 'AttributeError'>, msg = "can't set attribute"
callableObj = <function SelectorTestCase.test_specificity.<locals>._set at 0x7fd1880565f0>
args = (), kwargs = {}, excMsg = "can't set attribute 'specificity'"

    def assertRaisesMsg(self, excClass, msg, callableObj, *args, **kwargs):
        """
        Just like unittest.TestCase.assertRaises,
        but checks that the message is right too.
            Usage::
                self.assertRaisesMsg(
                MyException, "Exception message",
                my_function, (arg1, arg2)
                )
            from
        http://www.nedbatchelder.com/blog/200609.html#e20060905T064418
        """
        try:
          callableObj(*args, **kwargs)

/tmp/autopkgtest-lxc.ysif6shm/downtmp/autopkgtest_tmp/python-css-parser/css_parser_tests/basetest.py:168: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
  def _set(): selector.specificity = 1
E   AttributeError: can't set attribute 'specificity'

/tmp/autopkgtest-lxc.ysif6shm/downtmp/autopkgtest_tmp/python-css-parser/css_parser_tests/test_selector.py:414: AttributeError

During handling of the above exception, another exception occurred:

self = <css_parser_tests.test_selector.SelectorTestCase testMethod=test_specificity>

    def test_specificity(self):
        "Selector.specificity"
        selector = css_parser.css.Selector()
            # readonly
        def _set(): selector.specificity = 1
      self.assertRaisesMsg(AttributeError, "can't set attribute", _set)

/tmp/autopkgtest-lxc.ysif6shm/downtmp/autopkgtest_tmp/python-css-parser/css_parser_tests/test_selector.py:415: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ self = <css_parser_tests.test_selector.SelectorTestCase testMethod=test_specificity>
excClass = <class 'AttributeError'>, msg = "can't set attribute"
callableObj = <function SelectorTestCase.test_specificity.<locals>._set at 0x7fd1880565f0>
args = (), kwargs = {}, excMsg = "can't set attribute 'specificity'"

    def assertRaisesMsg(self, excClass, msg, callableObj, *args, **kwargs):
        """
        Just like unittest.TestCase.assertRaises,
        but checks that the message is right too.
            Usage::
                self.assertRaisesMsg(
                MyException, "Exception message",
                my_function, (arg1, arg2)
                )
            from
        http://www.nedbatchelder.com/blog/200609.html#e20060905T064418
        """
        try:
            callableObj(*args, **kwargs)
        except excClass as exc:
            excMsg = str(exc)
            if not msg:
                # No message provided: any message is fine.
                return
            elif excMsg == msg:
                # Message provided, and we got the right message: passes.
                return
            else:
                # Message provided, and it didn't match: fail!
              raise self.failureException(
"Right exception, wrong message: got '%s' instead of '%s'" %
                    (excMsg, msg))
E AssertionError: Right exception, wrong message: got 'can't set attribute 'specificity'' instead of 'can't set attribute'

/tmp/autopkgtest-lxc.ysif6shm/downtmp/autopkgtest_tmp/python-css-parser/css_parser_tests/basetest.py:179: AssertionError

Attachment: OpenPGP_signature
Description: OpenPGP digital signature


--- End Message ---
--- Begin Message ---
Source: python-css-parser
Source-Version: 1.0.6-2
Done: Nicholas D Steeves <s...@debian.org>

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

Debian distribution maintenance software
pp.
Nicholas D Steeves <s...@debian.org> (supplier of updated python-css-parser 
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 ftpmas...@ftp-master.debian.org)


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

Format: 1.8
Date: Fri, 10 Dec 2021 21:48:53 -0500
Source: python-css-parser
Architecture: source
Version: 1.0.6-2
Distribution: unstable
Urgency: medium
Maintainer: Debian Python Team <team+pyt...@tracker.debian.org>
Changed-By: Nicholas D Steeves <s...@debian.org>
Closes: 1001419
Changes:
 python-css-parser (1.0.6-2) unstable; urgency=medium
 .
   * Update my email address and copyright year range.
   * Add 0003-test-relax-assertRaisesMsg-to-match-longer-strings.patch
     (Closes: #1001419).
   * Declare Standards-Version: 4.6.0.1 (no changes required).
Checksums-Sha1:
 5ba247cea4eb5ccda4a391347fd9c2792c704d6f 2196 python-css-parser_1.0.6-2.dsc
 31eb0eec45a86345c25d09fe6e1d1a56c837dd6f 14204 
python-css-parser_1.0.6-2.debian.tar.xz
 4c17471ecea991ac21d739831b254593cbf54666 6959 
python-css-parser_1.0.6-2_amd64.buildinfo
Checksums-Sha256:
 56c08ef8aac5fbc36a821b03143b10afe345a57e7ff0ec34ea0c75f0a8a0e672 2196 
python-css-parser_1.0.6-2.dsc
 c6ad174c7ae786ae428b60b15468f956168dae8638bf4db6668ce2716f416931 14204 
python-css-parser_1.0.6-2.debian.tar.xz
 1ce8fedf6278e7fcf82efa4fcffb6739b1686c27493bc5bc36bd17ce7beaca3b 6959 
python-css-parser_1.0.6-2_amd64.buildinfo
Files:
 76778726f7612d5e7003868b48706638 2196 python optional 
python-css-parser_1.0.6-2.dsc
 ee424b358bd1548c6a9064bd01d2ab1d 14204 python optional 
python-css-parser_1.0.6-2.debian.tar.xz
 023294410ddb9f4bd3bf3adebdf41090 6959 python optional 
python-css-parser_1.0.6-2_amd64.buildinfo

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

iQIzBAEBCgAdFiEE4qYmHjkArtfNxmcIWogwR199EGEFAmG0EgkACgkQWogwR199
EGFaMA/8C5qTu0obp3E1XZ4ywfjdTBiB89UhhpEZlffG0t6J//Kpcjd/so6HfRwS
UeO3JE0uqqXGzfyD+kegBKX8X9akSjN53Yzw2QfBzs5zljHeg4MEK/nkiSkH/1pY
Esqxw3H6DgFnTj52wWAOp2WOibemCZwZXQF9x74xbtcl69IjukyDNPYdi4TIvD8Z
9uRwk4ExDXPoUdpILtAaK3xiTcl9vq1KhtmtbkQckJiByj3G+4dx6IRzZAjlhyr6
uNDYAXXjoGS9bFUVe3gM2cVwuIFOJvkRROHI7x58VHxsjhPJD347EwCbwK4vZE+2
L/GuOLc/iFpxCP4MCfedDtYgYE9btTVD0MJT4LBfkPs6mCPxyMHCFFzRZV4YAIbo
cl7lMCB3ALoMDzPDnbJN2xWulMNWsJkTaWS/g4NrwLwF275Ggc1+yu/DrqdMRVu9
dZ/INvACr+XaK109VaTiNSeWLZgTFSuDQmnuNmtLOof8ZTdURZ7fOrJK/dXDcdhO
SjUvn4hzIelIW63+PPFBg6/Cm5bGi1eUn2Cm9ntkMauwGAq8/HjQZfVr4OKPlbUk
sARw2FZTzI5yzaXKvN6kMSB7vf2Ekh3xkYEG84ymk9xrSq510aKsy/7NtFkM+Whs
dJxtXFshin3eCuPO2snAAym4abYWNavEJ1Jxu/EJD/Jn4BuxxcE=
=C6X7
-----END PGP SIGNATURE-----

--- End Message ---

Reply via email to