About Anaconda Help Download Anaconda

Travel through time in your tests.

Installers

  • linux-64 v2.16.0

conda install

To install this package run one of the following:
conda install anaconda-python-gte-3.10::time-machine

Description

time-machine is intended to combine the advantages of freezegun and libfaketime. It works without LD_PRELOAD but still mocks the standard library functions everywhere they may be referenced. It does so by modifying the built-in functions at the C level, to point them through wrappers that return different values when mocking. Normally in Python, built-in functions are immutable, but time-machine overcomes this by using C code to replace their function pointers.


© 2025 Anaconda, Inc. All Rights Reserved. (v4.2.2) Legal | Privacy Policy