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

Bug 1891788

Summary: babel fails to build: pytest.PytestDeprecationWarning treated as error
Product: [Fedora] Fedora Reporter: Tomáš Hrnčiar <thrnciar>
Component: babelAssignee: Felix Schwarz <fschwarz>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: rawhideCC: fschwarz, mhroncok, nphilipp, thrnciar
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Fixed In Version: 2.9.0-1.fc34 Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2020-11-17 07:34:37 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:
Bug Depends On:    
Bug Blocks: 1868278, 1890881    

Description Tomáš Hrnčiar 2020-10-27 11:24:52 UTC
babel fails to build with Python 3.10.0a1.

+ /usr/bin/python3 -m pytest
============================= test session starts ==============================
platform linux -- Python 3.10.0a1, pytest-6.0.2, py-1.9.0, pluggy-0.13.1
rootdir: /builddir/build/BUILD/Babel-2.8.0, configfile: setup.cfg
collected 0 items / 1 error

==================================== ERRORS ====================================
________________________ ERROR collecting test session _________________________
/usr/lib/python3.10/site-packages/pluggy/ in __call__
    return self._hookexec(self, self.get_hookimpls(), kwargs)
/usr/lib/python3.10/site-packages/pluggy/ in _hookexec
    return self._inner_hookexec(hook, methods, kwargs)
/usr/lib/python3.10/site-packages/pluggy/ in <lambda>
    self._inner_hookexec = lambda hook, methods, kwargs: hook.multicall( in pytest_collect_file
    return DoctestModule(path, parent)
/usr/lib/python3.10/site-packages/_pytest/ in __call__
    warnings.warn(NODE_USE_FROM_PARENT.format(name=self.__name__), stacklevel=2)
E   pytest.PytestDeprecationWarning: Direct construction of DoctestModule has been deprecated, please use DoctestModule.from_parent.
E   See for more details.
=========================== short test summary info ============================
ERROR  - pytest.PytestDeprecationWarning: Direct construction of DoctestModul...
!!!!!!!!!!!!!!!!!!!! Interrupted: 1 error during collection !!!!!!!!!!!!!!!!!!!!
=============================== 1 error in 0.10s ===============================
error: Bad exit status from /var/tmp/rpm-tmp.v7Wpgv (%check)
    Bad exit status from /var/tmp/rpm-tmp.v7Wpgv (%check)

For the build logs, see:

For all our attempts to build babel with Python 3.10, see:

Testing and mass rebuild of packages is happening in copr. You can follow these instructions to test locally in mock if your package builds with Python 3.10:

Let us know here if you have any questions.

Python 3.10 will be included in Fedora 35. To make that update smoother, we're building Fedora packages with early pre-releases of Python 3.10.
A build failure prevents us from testing all dependent packages (transitive [Build]Requires), so if this package is required a lot, it's important for us to get it fixed soon.
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 Miro Hrončok 2020-10-27 11:38:26 UTC
pytest.PytestDeprecationWarning treated as error - this should fail in rawhide as well.

I've enabled tracking in

Comment 2 Felix Schwarz 2020-11-16 21:50:21 UTC
I built Babel 2.9.0 in rawhide and I think upstream fix the problem in this release. Can you try to rebuild with Python 3.10?

Comment 3 Miro Hrončok 2020-11-17 07:34:37 UTC
The copr repo does that automatically.

Thanks for the fix.