Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 796146 - dev-python/flake8-3.9.2 fails tests: DeprecationWarning: SelectableGroups dict interface is deprecated. Use select
Summary: dev-python/flake8-3.9.2 fails tests: DeprecationWarning: SelectableGroups dic...
Status: RESOLVED FIXED
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:
Depends on:
Blocks:
 
Reported: 2021-06-15 06:58 UTC by Agostino Sarubbo
Modified: 2021-08-08 09:54 UTC (History)
1 user (show)

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


Attachments
build.log (build.log,808.56 KB, text/plain)
2021-06-15 06:58 UTC, Agostino Sarubbo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Agostino Sarubbo gentoo-dev 2021-06-15 06:58:25 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-python/flake8-3.9.2 fails tests.
Discovered on: amd64 (internal ref: ci)

NOTE:
This machine uses GCC-11: https://gcc.gnu.org/gcc-11/porting_to.html
If you think this is a GCC-11 related issue, please block bug 732706.
Comment 1 Agostino Sarubbo gentoo-dev 2021-06-15 06:58:28 UTC
Created attachment 716169 [details]
build.log

build log and emerge --info
Comment 2 Louis Sautier (sbraz) gentoo-dev 2021-08-08 09:54:08 UTC
Fixed by not failing on warnings when we run pytest:

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=7ae1b4b192f9885370f9e64f55f25ce64d542a88
commit 7ae1b4b192f9885370f9e64f55f25ce64d542a88
Author: Michał Górny <mgorny@gentoo.org>
Date:   Sat Jun 19 11:21:59 2021 +0200

    python-utils-r1.eclass: Pass -Wdefault to epytest to avoid -Werror
    
    Make pytest pass -Wdefault in order to override upstream default warning
    options that commonly include -Werror.  This has often caused tests to
    start failing due to new deprecation warnings introduced
    in dependencies, or block new implementations due to harmless
    deprecation warnings.
    
    A side effect of this is that we are overriding all warning options used
    by upstream.  This could e.g. cause more warnings to be reported (when
    upstream ignores some of them).  This might also break badly written
    tests (e.g. when they rely on exceptions to catch warnings).
    
    Signed-off-by: Michał Górny <mgorny@gentoo.org>