1 hour ago · 6 min read1193 words · Tech · hide · 0 comments

time-machine is my library for mocking the current date and time in Python tests. I’ve just released version 3.3.0 with a decent number of changes, so here’s a lovely summary for you. Despite doing one simple-to-describe task, time-machine has ended up being quite a big library, thanks to the various complexities of reading time and API changes and optimizations in Python. I’m grateful for all the help I’ve received through open source contributions, it really makes it more manageable. Python 3.15 support Python 3.15 is currently in beta, due in October 2026, but time-machine 3.3.0 already supports it (wheels pending the release candidate). I try to get time-machine ready for new Python versions as soon as possible because it is becoming more widely used, and projects like Fedora want to test all the packages they support against the new Python version early. This release required a bit more work than usual. Historically, time-machine never needed to mock datetime.date.today(),…

No comments yet. Log in to reply on the Fediverse. Comments will appear here.