Bug 2274500 - python-lexicon fails to build with pytest 8: AttributeError: 'aliases_of' object has no attribute 'ad'
Summary: python-lexicon fails to build with pytest 8: AttributeError: 'aliases_of' obj...
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: python-lexicon
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Paul Howarth
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 2256331
TreeView+ depends on / blocked
 
Reported: 2024-04-11 12:06 UTC by Tomáš Hrnčiar
Modified: 2024-04-11 13:00 UTC (History)
4 users (show)

Fixed In Version: python-lexicon-2.0.1-12.fc41
Clone Of:
Environment:
Last Closed: 2024-04-11 13:00:23 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Tomáš Hrnčiar 2024-04-11 12:06:41 UTC
python-lexicon fails to build with pytest 8.

=================================== FAILURES ===================================
_______ AliasDict_.aliases_of.returns_list_of_aliases_for_given_real_key _______

self = <alias_dict.AliasDict_.aliases_of object at 0x7f4aff77f440>

    def returns_list_of_aliases_for_given_real_key(self):
>       assert self.ad.aliases_of("realkey") == []
E       AttributeError: 'aliases_of' object has no attribute 'ad'

tests/alias_dict.py:43: AttributeError
_________ AliasDict_.aliases_of.returns_empty_list_for_unaliased_keys __________

self = <alias_dict.AliasDict_.aliases_of object at 0x7f4aff77e2d0>

    def returns_empty_list_for_unaliased_keys(self):
>       self.ad["realkey"] = 5
E       AttributeError: 'aliases_of' object has no attribute 'ad'

tests/alias_dict.py:50: AttributeError
______ AliasDict_.aliases_of.returns_multi_item_list_for_multiple_aliases ______

self = <alias_dict.AliasDict_.aliases_of object at 0x7f4aff77f200>

    def returns_multi_item_list_for_multiple_aliases(self):
>       self.ad.alias("alias1", to="realkey")
E       AttributeError: 'aliases_of' object has no attribute 'ad'

tests/alias_dict.py:54: AttributeError
___________ AliasDict_.aliases_of.returns_list_of_aliases_for_alias ____________

self = <alias_dict.AliasDict_.aliases_of object at 0x7f4aff77c260>

    def returns_list_of_aliases_for_alias(self):
>       self.ad.alias("myalias", to="realkey")
E       AttributeError: 'aliases_of' object has no attribute 'ad'

tests/alias_dict.py:61: AttributeError
_______ AliasDict_.aliases_are_not_real_keys.keys_returns_only_real_keys _______

self = <alias_dict.AliasDict_.aliases_are_not_real_keys object at 0x7f4aff79c8f0>

    def keys_returns_only_real_keys(self):
        "keys() only returns real keys, not aliases"
>       assert "myalias" not in self.a.keys()
E       AttributeError: 'aliases_are_not_real_keys' object has no attribute 'a'

tests/alias_dict.py:171: AttributeError
______ AliasDict_.aliases_are_not_real_keys.items_returns_only_real_keys _______

self = <alias_dict.AliasDict_.aliases_are_not_real_keys object at 0x7f4aff79e210>

    def items_returns_only_real_keys(self):
        "items() and iteritems() only return real keys, not aliases"
>       assert ("key1", "val1") in self.a.items()
E       AttributeError: 'aliases_are_not_real_keys' object has no attribute 'a'

tests/alias_dict.py:177: AttributeError
=========================== short test summary info ============================
FAILED tests/alias_dict.py::AliasDict_::aliases_of::returns_list_of_aliases_for_given_real_key
FAILED tests/alias_dict.py::AliasDict_::aliases_of::returns_empty_list_for_unaliased_keys
FAILED tests/alias_dict.py::AliasDict_::aliases_of::returns_multi_item_list_for_multiple_aliases
FAILED tests/alias_dict.py::AliasDict_::aliases_of::returns_list_of_aliases_for_alias
FAILED tests/alias_dict.py::AliasDict_::aliases_are_not_real_keys::keys_returns_only_real_keys
FAILED tests/alias_dict.py::AliasDict_::aliases_are_not_real_keys::items_returns_only_real_keys
========================= 6 failed, 26 passed in 0.06s =========================

https://docs.pytest.org/en/stable/changelog.html

For the build logs, see:
https://copr-be.cloud.fedoraproject.org/results/thrnciar/pytest/fedora-rawhide-x86_64/07248312-python-lexicon/

For all our attempts to build python-lexicon with pytest 8, see:
https://copr.fedorainfracloud.org/coprs/thrnciar/pytest/package/python-lexicon/

Let us know here if you have any questions.

Pytest 8 is planned to be included in Fedora 41. And this bugzilla is a
heads up before we merge new pytest into rawhide. For more info see a Fedora Change
proposal https://fedoraproject.org/wiki/Changes/Pytest_8

We'd appreciate help from the people who know this package best,
but if you don't want to work on this now, let us know so we can try to work around it on our side.

Comment 1 Fedora Update System 2024-04-11 12:56:20 UTC
FEDORA-2024-bcf3763d08 (python-lexicon-2.0.1-12.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-bcf3763d08

Comment 2 Fedora Update System 2024-04-11 13:00:23 UTC
FEDORA-2024-bcf3763d08 (python-lexicon-2.0.1-12.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.


Note You need to log in before you can comment on or make changes to this bug.