Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

freeze_time broken between 1.2.1 and 1.2.2 #482

Open
bernhardboehmer opened this issue Nov 26, 2022 · 1 comment
Open

freeze_time broken between 1.2.1 and 1.2.2 #482

bernhardboehmer opened this issue Nov 26, 2022 · 1 comment

Comments

@bernhardboehmer
Copy link

The behavior of freeze_time is broken with the change to 1.2.2.
Setup:
Python 3.10.3 on MacOS 12.5.1 with M1 using django test of Django 3.2.
The following setup worked with multplie freezegun releases < 1.2.2:

@freeze_time("2017-01-20")
class GenericProductOfferMixin(ProductTestMixin):
        def generic_setup(self'):
        import datetime
        assert datetime.date.today() == datetime.date(2017, 1, 20)

but raises an assertion error with 1.2.2. The actual stacktrace (leaving out the assertion) is:
File "/Users/bernhard/.pyenv/versions/django_3_2/lib/python3.10/site-packages/freezegun/api.py", line 732, in stop freeze_factories.pop() IndexError: pop from empty list

@kloczek
Copy link

kloczek commented Feb 1, 2023

Despite what is on pypy https://pypi.io/project/freezegun/ (version 1.2.2) here there is no git tag for that version.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants