Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 841776 - dev-python/astroid-2.11.3 fails tests
Summary: dev-python/astroid-2.11.3 fails tests
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Python Gentoo Team
URL:
Whiteboard:
Keywords: TESTFAILURE
Depends on:
Blocks:
 
Reported: 2022-04-30 02:03 UTC by Jonathan Lovelace
Modified: 2022-05-04 04:36 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments
dev-python:astroid-2.11.3:20220430-004702.log (dev-python:astroid-2.11.3:20220430-004702.log,214.44 KB, text/x-log)
2022-04-30 02:03 UTC, Jonathan Lovelace
Details
emerge-info.txt (emerge-info.txt,8.37 KB, text/plain)
2022-04-30 02:04 UTC, Jonathan Lovelace
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan Lovelace 2022-04-30 02:03:57 UTC
Created attachment 775554 [details]
dev-python:astroid-2.11.3:20220430-004702.log

=dev-python/astroid-2.11.2 and -2.11.3 fail three tests, two under tests/unittest_decorators.py and one under tests/unittest_scoped_nodes.py

The failure reports for the two in unittest_decorators.py (the one in unittest_scoped_nodes.py is IMO too long to paste here) are:

_________________ TestDeprecationDecorators.test_deprecated_default_argument_values_one_arg __________________

    @staticmethod
    def test_deprecated_default_argument_values_one_arg() -> None:
        with pytest.warns(DeprecationWarning) as records:
            # No argument passed for 'name'
            SomeClass()
>           assert len(records) == 1
E           assert 0 == 1
E             +0
E             -1

records    = WarningsChecker(record=True)

tests/unittest_decorators.py:28: AssertionError
_________________ TestDeprecationDecorators.test_deprecated_default_argument_values_two_args _________________

    @staticmethod
    def test_deprecated_default_argument_values_two_args() -> None:
        instance = SomeClass(name="")
    
        # No value of 'None' passed for both arguments
        with pytest.warns(DeprecationWarning) as records:
            instance.func()
>           assert len(records) == 2
E           assert 0 == 2
E             +0
E             -2

instance   = <tests.unittest_decorators.SomeClass object at 0x7f336aba7610>
records    = WarningsChecker(record=True)

tests/unittest_decorators.py:57: AssertionError
Comment 1 Jonathan Lovelace 2022-04-30 02:04:39 UTC
Created attachment 775557 [details]
emerge-info.txt
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2022-04-30 16:05:13 UTC
They all (still) pass for me.
Comment 3 Jonathan Lovelace 2022-05-04 03:42:17 UTC
I found that this machine had installed =dev-python/httpbin-0.7.0-r4 before the change that added an upper bound to its dependency on dev-python/werkzeug, and so I had =dev-python/werkzeug-2.1.1 installed. Once I downgraded werkzeug and reinstalled httpbin, the tests pass (at least in the stable version 2.11.2).
Comment 4 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-04 04:34:51 UTC
(In reply to Jonathan Lovelace from comment #3)
> I found that this machine had installed =dev-python/httpbin-0.7.0-r4 before
> the change that added an upper bound to its dependency on
> dev-python/werkzeug, and so I had =dev-python/werkzeug-2.1.1 installed. Once
> I downgraded werkzeug and reinstalled httpbin, the tests pass (at least in
> the stable version 2.11.2).

To be fair, I think it should've had a revbump. :)
Comment 5 Sam James archtester Gentoo Infrastructure gentoo-dev Security 2022-05-04 04:36:10 UTC
(In reply to Sam James from comment #4)
> (In reply to Jonathan Lovelace from comment #3)
> > I found that this machine had installed =dev-python/httpbin-0.7.0-r4 before
> > the change that added an upper bound to its dependency on
> > dev-python/werkzeug, and so I had =dev-python/werkzeug-2.1.1 installed. Once
> > I downgraded werkzeug and reinstalled httpbin, the tests pass (at least in
> > the stable version 2.11.2).
> 
> To be fair, I think it should've had a revbump. :)

(or rather, it did, but maybe split into two w/ a git mv for the < and another revision for the new test deps. whatever, done now)