We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
datetime
Self
3.12.2
8.1.1
2.14.1
This code runs fine:
class MyDT(datetime): pass my_dt = MyDT.now() assert type(my_dt) == MyDT
This code asserts:
class MyDT(datetime): pass with time_machine.travel(0): my_dt = MyDT.now() assert type(my_dt) == MyDT
The text was updated successfully, but these errors were encountered:
Successfully merging a pull request may close this issue.
Python Version
3.12.2
pytest Version
8.1.1
Package Version
2.14.1
Description
This code runs fine:
This code asserts:
The text was updated successfully, but these errors were encountered: