Crash report
What happened?
Starting with Python 3.13.0b2, importing freezegun causes the interpreter to crash on exit. I was able to reduce it into the following ugly quasi-standalone snippet:
importasyncioimportdatetimefromtypingimportTypeclasstzutc(datetime.tzinfo):
pass_EPOCHTZ=datetime.datetime(1970, 1, 1, tzinfo=tzutc())
classFakeDateMeta(type):
def__instancecheck__(self, obj):
returnTrueclassFakeDate(datetime.date, metaclass=FakeDateMeta):
passdefpickle_fake_date(datetime_) ->Type[FakeDate]:
# A pickle function for FakeDatereturnFakeDate
$ python -c 'import repro'
python: Objects/typeobject.c:143: managed_static_type_index_get: Assertion `managed_static_type_index_is_set(self)' failed.
Aborted (core dumped)
I've been able to reproduce it with 3.13.0b2, tip of 3.13 branch and tip of main branch.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Output from running 'python -VV' on the command line:
Python 3.14.0a0 (heads/main:fd104dfcb83, Jun 6 2024, 16:55:57) [GCC 14.1.1 20240516]
Linked PRs
Crash report
What happened?
Starting with Python 3.13.0b2, importing
freezeguncauses the interpreter to crash on exit. I was able to reduce it into the following ugly quasi-standalone snippet:I've been able to reproduce it with 3.13.0b2, tip of 3.13 branch and tip of main branch.
CPython versions tested on:
CPython main branch
Operating systems tested on:
Linux
Output from running 'python -VV' on the command line:
Python 3.14.0a0 (heads/main:fd104dfcb83, Jun 6 2024, 16:55:57) [GCC 14.1.1 20240516]
Linked PRs