Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 893838 - dev-python/pylama-8.4.1-r1 fails tests (HARDENED-SYSTEM): FAILED test_linters.py::test_pylint
Summary: dev-python/pylama-8.4.1-r1 fails tests (HARDENED-SYSTEM): FAILED test_linters...
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Zac Medico
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-02-10 11:40 UTC by Agostino Sarubbo
Modified: 2023-10-14 22:10 UTC (History)
3 users (show)

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


Attachments
build.log (build.log,98.83 KB, text/plain)
2023-02-10 11:40 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 2023-02-10 11:40:19 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-python/pylama-8.4.1-r1 fails tests (HARDENED-SYSTEM).
Discovered on: amd64 (internal ref: hardened_tinderbox)

NOTE:
(HARDENED-SYSTEM) in the summary means that the bug was found on a machine that runs an hardened profile with -D_FORTIFY_SOURCE=3 and -D_GLIBCXX_ASSERTIONS (https://www.gentoo.org/support/news-items/2023-01-01-hardening-fortify-assertions.html) but this bug MAY or MAY NOT BE related to the changes related to hardened.
Comment 1 Agostino Sarubbo gentoo-dev 2023-02-10 11:40:21 UTC
Created attachment 850352 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2023-02-10 11:40:22 UTC
Error(s) that match a know pattern in addition to what has been reported in the summary:


 <Error:100:1: C0115 Missing class docstring>,
 <Error:100:1: R0903 Too few public methods (0/2)>,
 <Error:108:1: C0115 Missing class docstring>,
 <Error:108:1: R0903 Too few public methods (0/2)>,
 <Error:10:1: C0103 Constant name "a" doesn't conform to UPPER_CASE naming style>,
 <Error:116:1: R0903 Too few public methods (0/2)>,
 <Error:128:9: W0612 Unused variable 'another'>,
 <Error:131:1: R0903 Too few public methods (1/2)>]
 <Error:14:1: C0115 Missing class docstring>,
 <Error:14:1: R0205 Class 'Message' inherits from object, can be safely removed from bases in python3>,
 <Error:14:1: R0903 Too few public methods (1/2)>,
 <Error:17:5: E0101 Explicit return in __init__>,
 <Error:17:5: R1710 Either all return statements in a function should return an expression, or none of them should.>,
 <Error:22:9: R1705 Unnecessary "elif" after "return", remove the leading "el" from "elif">,
 <Error:23:13: R1705 Unnecessary "elif" after "return", remove the leading "el" from "elif">,
 <Error:32:16: C0209 Formatting a regular string which could be a f-string>,
 <Error:35:1: C0115 Missing class docstring>,
 <Error:35:1: R0903 Too few public methods (0/2)>,
 <Error:43:1: C0115 Missing class docstring>,
 <Error:43:1: R0903 Too few public methods (0/2)>,
 <Error:51:1: C0115 Missing class docstring>,
 <Error:51:1: R0903 Too few public methods (0/2)>,
 <Error:59:1: C0115 Missing class docstring>,
 <Error:59:1: R0903 Too few public methods (0/2)>,
 <Error:67:1: C0115 Missing class docstring>,
 <Error:67:1: R0903 Too few public methods (0/2)>,
 <Error:75:1: C0115 Missing class docstring>,
 <Error:75:1: R0903 Too few public methods (0/2)>,
 <Error:83:1: C0115 Missing class docstring>,
 <Error:83:1: R0903 Too few public methods (0/2)>,
 <Error:92:1: C0115 Missing class docstring>,
 <Error:92:1: R0903 Too few public methods (0/2)>,
E        +  where [<Error:22:9: R1705 Unnecessary "elif" after "return", remove the leading "el" from "elif">, <Error:23:13: R1705 Unnecessary "elif" after "return", remove the leading "el" from "elif">] = <pylama.context.RunContext object at 0x7fee521dadc0>.errors
E       assert not [<Error:22:9: R1705 Unnecessary "elif" after "return", remove the leading "el" from "elif">, <Error:23:13: R1705 Unnecessary "elif" after "return", remove the leading "el" from "elif">]
FAILED tests/test_linters.py::test_pylint - assert not [<Error:22:9: R1705 Un...
errors     = [<Error:1:1: C0114 Missing module docstring>,
Comment 3 Larry the Git Cow gentoo-dev 2023-10-14 22:10:42 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=0b3b0734f01cfd7e400d0a5ee1939e861961dc4c

commit 0b3b0734f01cfd7e400d0a5ee1939e861961dc4c
Author:     Zac Medico <zmedico@gentoo.org>
AuthorDate: 2023-10-14 22:06:09 +0000
Commit:     Zac Medico <zmedico@gentoo.org>
CommitDate: 2023-10-14 22:10:37 +0000

    dev-python/pylama: Fix test_pylint elif bug 893838
    
    Closes: https://bugs.gentoo.org/893838
    Signed-off-by: Zac Medico <zmedico@gentoo.org>

 .../pylama/files/pylama-8.4.1-dummy-elif.patch     | 32 ++++++++++++++++++++++
 dev-python/pylama/pylama-8.4.1-r1.ebuild           |  1 +
 2 files changed, 33 insertions(+)