Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 921232 - dev-python/inflect-7.0.0 fails test inflect/__init__.py::inflect.engine.compare
Summary: dev-python/inflect-7.0.0 fails test inflect/__init__.py::inflect.engine.compare
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Louis Sautier (sbraz)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2024-01-02 21:14 UTC by Dustin Polke
Modified: 2024-01-03 08:29 UTC (History)
2 users (show)

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


Attachments
emerge --info (emerge--info.txt,20.96 KB, text/plain)
2024-01-02 21:14 UTC, Dustin Polke
Details
Full build.log (build.log,60.62 KB, text/plain)
2024-01-02 21:16 UTC, Dustin Polke
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Dustin Polke 2024-01-02 21:14:08 UTC
Created attachment 881346 [details]
emerge --info

__________________________________________________________________________ [doctest] inflect.engine.compare __________________________________________________________________________
EXAMPLE LOCATION UNKNOWN, not showing all tests of that example
??? >>> compare('egg', '')
Differences (unified diff with -expected +actual):
    @@ -1,5 +1,12 @@
     Traceback (most recent call last):
    -...
    -pydantic...ValidationError: ...
    -...
    -  ...at least 1 characters...
    +  File "/usr/lib/python3.11/doctest.py", line 1353, in __run
    +    exec(compile(example.source, filename, "single",
    +  File "<doctest inflect.engine.compare[3]>", line 1, in <module>
    +    compare('egg', '')
    +  File "/usr/lib/python3.11/site-packages/pydantic/_internal/_validate_call.py", line 113, in __call__
    +    res = self.__pydantic_validator__.validate_python(pydantic_core.ArgsKwargs(args, kwargs))
    +          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
    +pydantic_core._pydantic_core.ValidationError: 1 validation error for compare
    +1
    +  String should have at least 1 character [type=string_too_short, input_value='', input_type=str]
    +    For further information visit https://errors.pydantic.dev/2.5/v/string_too_short

/var/tmp/portage/dev-python/inflect-7.0.0/work/inflect-7.0.0/inflect/__init__.py:None: DocTestFailure
Comment 1 Dustin Polke 2024-01-02 21:16:02 UTC
Created attachment 881347 [details]
Full build.log
Comment 2 Michał Górny archtester Gentoo Infrastructure gentoo-dev Security 2024-01-03 06:29:06 UTC
Looks like an incompatibility with new dev-python/pydantic.
Comment 3 Larry the Git Cow gentoo-dev 2024-01-03 08:29:58 UTC
The bug has been closed via the following commit(s):

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

commit cf38b34bd509337a583210f00199cb85c91df72d
Author:     Michał Górny <mgorny@gentoo.org>
AuthorDate: 2024-01-03 07:36:05 +0000
Commit:     Michał Górny <mgorny@gentoo.org>
CommitDate: 2024-01-03 08:29:55 +0000

    dev-python/inflect: Deselect broken doctest
    
    Closes: https://bugs.gentoo.org/921232
    Signed-off-by: Michał Górny <mgorny@gentoo.org>

 dev-python/inflect/inflect-7.0.0.ebuild | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)