-
Notifications
You must be signed in to change notification settings - Fork 269
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
Conditionally patch time.clock #296
Conversation
time.clock was removed in Python 3.8, which is causing `freezegun` to fail when importing the api module as it tries to stash and patch the clock function. This makes the patching logic conditional on the existence of a time.clock function.
2 similar comments
Test failure on 3.8-dev seems unrelated, but also is emitting deprecation warnings in |
Nice! Thanks. |
@boxed Since this is actively breaking on Python 3.8 on import, I think a release sooner rather than later would be a good idea - considering this is a testing library and it may block people from testing 3.8 before the release. Not sure if you use the |
Agreed. But I don't have access to make a release. @spulec |
Thanks! Released with |
@spulec It seems like you used the Once PEP 592 is implemented, you will be able to "yank" the last two releases and cut new releases in their place, but you may as well delete the most recent one before someone gets hit by it. |
Sorry about that. I've merged #296 for the future. |
time.clock
was removed in Python 3.8, which is causingfreezegun
to fail when importing the API module as it tries to stash and patch the clock function. This makes the patching logic conditional on the existence of atime.clock
function.time.clock
has been deprecated for some time, and I guess it was just missed in at least my test suite because the real function was never invoked.It may be worth hard failing on deprecation warnings in your test suite in the future, to avoid problems like this.