Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1928054
Summary: | python-pytest-toolbox: FTBFS in Fedora rawhide | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Tomáš Hrnčiar <thrnciar> |
Component: | python-pytest-toolbox | Assignee: | Fabian Affolter <mail> |
Status: | CLOSED ERRATA | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | rawhide | CC: | code, mail, mhroncok |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
URL: | https://koschei.fedoraproject.org/package/python-pytest-toolbox | ||
Whiteboard: | |||
Fixed In Version: | python-pytest-toolbox-0.4-8.fc35 | Doc Type: | If docs needed, set a value |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2021-06-10 17:57:41 UTC | Type: | Bug |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 1890881, 1927309, 1927313, 1968953, 1969168 |
Description
Tomáš Hrnčiar
2021-02-12 09:33:04 UTC
This is related to pytest 6.2. See https://lists.fedoraproject.org/archives/list/python-devel@lists.fedoraproject.org/thread/4FCRHTHT2IZNA6SOF37HNDLY23ALNARF/ Adding BR: python3-pytest-timeout or patching/sedding the --timeout option out should fix it. This is a mass-posted update. Sorry if it is not 100% accurate to this bugzilla. The Python 3.10 rebuild is in progress in a Koji side tag. If you manage to fix the problem, please commit the fix in the rawhide branch, but don't build the package in regular rawhide. You can either build the package in the side tag, with: $ fedpkg build --target=f35-python Or you can the build and we will eventually build it for you. Note that the rebuild is still in progress, so not all (build) dependencies of this package might be available right away. Thanks. See also https://fedoraproject.org/wiki/Changes/Python3.10 If you have general questions about the rebuild, please use this mailing list thread: https://lists.fedoraproject.org/archives/list/devel@lists.fedoraproject.org/thread/G47SGOYIQLRDTWGOSLSWERZSSHXDEDH5/ The f35-python side tag has been merged to Rawhide. From now on, build as you would normally build. *** Bug 1969111 has been marked as a duplicate of this bug. *** I added BR: python3-pytest-timeout as Miro Hrončok suggested, and got: > =================================== FAILURES =================================== > ____________________________ test_close_to_now_true ____________________________ > > def test_close_to_now_true(): > c2n = CloseToNow() > dt = datetime.utcnow().strftime('%Y-%m-%dT%H:%M:%S') > > assert dt == c2n > > tests/test_comparison.py:12: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > ../../BUILDROOT/python-pytest-toolbox-0.4-8.fc35.x86_64/usr/lib/python3.10/site-packages/pytest_toolbox/comparison.py:19: in __eq__ > from pydantic.datetime_parse import parse_datetime > /usr/lib/python3.10/site-packages/pydantic/__init__.py:2: in <module> > from . import dataclasses > /usr/lib/python3.10/site-packages/pydantic/dataclasses.py:7: in <module> > from .main import create_model, validate_model > /usr/lib/python3.10/site-packages/pydantic/main.py:333: in <module> > class BaseModel(Representation, metaclass=ModelMetaclass): > /usr/lib/python3.10/site-packages/pydantic/main.py:326: in __new__ > cls.__signature__ = ClassAttribute('__signature__', generate_model_signature(cls.__init__, fields, config)) > /usr/lib/python3.10/site-packages/pydantic/utils.py:229: in generate_model_signature > if config.extra is config.extra.allow: > _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ > > self = <enum.property object at 0x7fbb94517df0>, instance = Extra.ignore > ownerclass = <enum 'Extra'> > > def __get__(self, instance, ownerclass=None): > if instance is None: > try: > return ownerclass._member_map_[self.name] > except KeyError: > raise AttributeError( > '%s: no class attribute %r' % (ownerclass.__name__, self.name) > ) > else: > if self.fget is None: > # check for member > if self.name in ownerclass._member_map_: > import warnings > > warnings.warn( > "accessing one member from another is not supported, " > " and will be disabled in 3.12", > DeprecationWarning, > stacklevel=2, > ) > E DeprecationWarning: accessing one member from another is not supported, and will be disabled in 3.12 > > /usr/lib64/python3.10/enum.py:151: DeprecationWarning > =========================== short test summary info ============================ > FAILED tests/test_comparison.py::test_close_to_now_true - DeprecationWarning:... which looks pretty bad at a glance, but is really just a DeprecationWarning coming out of python-pydantic due to https://github.com/samuelcolvin/pydantic/issues/2786. So I just passed “-W default::DeprecationWarning” to pytest in the spec file so the DeprecationWarning would still appear in the console output but would no longer fail the build. The result is the following PR to fix this FTBFS: https://src.fedoraproject.org/rpms/python-pytest-toolbox/pull-request/1 FEDORA-2021-3cee9897cf has been submitted as an update to Fedora 35. https://bodhi.fedoraproject.org/updates/FEDORA-2021-3cee9897cf FEDORA-2021-3cee9897cf has been pushed to the Fedora 35 stable repository. If problem still persists, please make note of it in this bug report. |