python-freezegun fails to build with Python 3.10.0b1. =================================== FAILURES =================================== ______________ Tester.test_class_decorator_respects_staticmethod _______________ self = <tests.test_datetimes.Tester object at 0x7f27f2554d60> def test_class_decorator_respects_staticmethod(self): > assert self.helper() == datetime.date(2012, 1, 14) tests/test_datetimes.py:422: _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ args = (<tests.test_datetimes.Tester object at 0x7f27f2554d60>,), kwargs = {} time_factory = <freezegun.api.FrozenDateTimeFactory object at 0x7f27f2557100> def wrapper(*args, **kwargs): with self as time_factory: if self.as_arg and self.as_kwarg: assert False, "You can't specify both as_arg and as_kwarg at the same time. Pick one." elif self.as_arg: result = func(time_factory, *args, **kwargs) elif self.as_kwarg: kwargs[self.as_kwarg] = time_factory result = func(*args, **kwargs) else: > result = func(*args, **kwargs) E TypeError: Tester.helper() takes 0 positional arguments but 1 was given For the build logs, see: https://copr-be.cloud.fedoraproject.org/results/@python/python3.10/fedora-rawhide-x86_64/02168142-python-freezegun/ For all our attempts to build python-freezegun with Python 3.10, see: https://copr.fedorainfracloud.org/coprs/g/python/python3.10/package/python-freezegun/ 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: https://copr.fedorainfracloud.org/coprs/g/python/python3.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.
I've backported that PR.