Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 834957

Summary: dev-python/typeguard-2.13.3 fails tests on MUSL
Product: Gentoo Linux Reporter: Agostino Sarubbo <ago>
Component: Current packagesAssignee: Python Gentoo Team <python>
Status: RESOLVED FIXED    
Severity: normal CC: andrewammerlaan
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://github.com/agronholm/typeguard/issues/242
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: build.log

Description Agostino Sarubbo gentoo-dev 2022-03-11 08:40:22 UTC
https://blogs.gentoo.org/ago/2020/07/04/gentoo-tinderbox/

Issue: dev-python/typeguard-2.13.3 fails tests.
Discovered on: amd64 (internal ref: tinderbox_musl)

NOTE:
This machine uses MUSL libc
Comment 1 Agostino Sarubbo gentoo-dev 2022-03-11 08:40:24 UTC
Created attachment 766764 [details]
build.log

build log and emerge --info
Comment 2 Agostino Sarubbo gentoo-dev 2022-03-11 08:40:25 UTC
Error(s) that match a know pattern:


E   AssertionError: Regex pattern 'extra key\(s\) \("foo"\) in argument "arg"' does not match 'TypedDict does not support instance and class checks'.
E   AssertionError: Regex pattern 'required key\(s\) \("x"\) missing from argument "arg"' does not match 'TypedDict does not support instance and class checks'.
E   AssertionError: Regex pattern 'required key\(s\) \("y"\) missing from argument "arg"' does not match 'TypedDict does not support instance and class checks'.
E   AssertionError: Regex pattern 'type of dict item "x" for argument "arg" must be int; got str instead' does not match 'TypedDict does not support instance and class checks'.
E   AssertionError: Regex pattern 'type of dict item "y" for argument "arg" must be str; got int instead' does not match 'TypedDict does not support instance and class checks'.
E   TypeError: TypedDict does not support instance and class checks
FAILED tests/test_typeguard.py::TestTypeChecked::test_typed_dict[correct] - T...
FAILED tests/test_typeguard.py::TestTypeChecked::test_typed_dict[missing_x]
FAILED tests/test_typeguard.py::TestTypeChecked::test_typed_dict[missing_y_error]
FAILED tests/test_typeguard.py::TestTypeChecked::test_typed_dict[missing_y_ok]
FAILED tests/test_typeguard.py::TestTypeChecked::test_typed_dict[unknown_key]
FAILED tests/test_typeguard.py::TestTypeChecked::test_typed_dict[wrong_x] - A...
FAILED tests/test_typeguard.py::TestTypeChecked::test_typed_dict[wrong_y] - A...
Comment 3 Larry the Git Cow gentoo-dev 2022-05-23 16:47:56 UTC
The bug has been closed via the following commit(s):

https://gitweb.gentoo.org/repo/gentoo.git/commit/?id=3aa2bfc2456e536d5471bb223754e872ccb8027d

commit 3aa2bfc2456e536d5471bb223754e872ccb8027d
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2022-05-23 16:18:04 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2022-05-23 16:47:52 +0000

    dev-python/typeguard: Fix py3.10 test failures
    
    Closes: https://bugs.gentoo.org/834957
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 .../typeguard/files/typeguard-2.13.3-test.patch    | 44 ++++++++++++++++++++++
 dev-python/typeguard/typeguard-2.13.3-r1.ebuild    |  5 +++
 2 files changed, 49 insertions(+)