Anders Hovmöller
Anders Hovmöller
Overkill is way better than underkill. Freezing by default means predictable tests by default.
Yes, nested freezes is a big part of the API! With a global freeze you can also simplify your tests quite a bit.
If we add `_pytest.runner` I think you'll end up with the time not actually frozen inside your tests!
The change to read the version is something I disagree with. I've had to hunt down big performance issues on startup for some projects that were partly due to people...
The indent is incorrect in your example I assume?
In general freezegun is rather buggy in this respect and people disagree what the behavior should be. I think UTC is the only logical default like you also seem to...
The indent seems wrong because the last line is not in the frozen block. It shouldn't print 1970, but 2019.
The local timezone would be super strange. The point of freezing time is to make tests reproducible. Using the local time zone means they are not. Tests could succeed on...
Huh, yea that's what I see on my desktop too, but not what I saw on my phone!
I guess the only way to make everything make sense is to ALWAYS pass the timezone you want somehow. You could pass `"local"` if you want the local, but if...