[Bug 1959397] Re: Autopkgtest failure with Python 3.10
Olivier Gayot
1959397 at bugs.launchpad.net
Mon Jan 31 08:25:53 UTC 2022
Debian released a new upstream version this week-end and applied the
same fix.
freezegun (1.1.0-1) unstable; urgency=medium
* New upstream release
-- Federico Ceratto <federico at debian.org> Sat, 29 Jan 2022 13:07:17
+0000
$ head -n 15 patches/001-fix-staticmethod.patch
Author: Karthikeyan Singaravelan
Description: Fix Python 3.10 callable staticmethods
Forwarded: not-needed
--- a/freezegun/api.py
+++ b/freezegun/api.py
@@ -598,7 +598,7 @@
continue
seen.add(attr)
- if not callable(attr_value) or inspect.isclass(attr_value):
+ if not callable(attr_value) or inspect.isclass(attr_value) or isinstance(attr_value, staticmethod):
continue
try:
Should this new version get integrated into jammy main, no sponsoring should be needed in Ubuntu.
--
You received this bug notification because you are a member of Ubuntu
Sponsors Team, which is subscribed to the bug report.
https://bugs.launchpad.net/bugs/1959397
Title:
Autopkgtest failure with Python 3.10
Status in freezegun package in Ubuntu:
Confirmed
Bug description:
The failure is caused by the change in Python 3.10 related to
staticmethod becoming callable.
A PR was opened upstream but has not been accepted in 7 months.
https://autopkgtest.ubuntu.com/results/autopkgtest-jammy/jammy/amd64/f/freezegun/20220126_091121_6bf82@/log.gz
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/freezegun/+bug/1959397/+subscriptions
More information about the Ubuntu-sponsors
mailing list