About Anaconda Help Download Anaconda

main / packages / time-machine 2.16.0

Travel through time in your tests.

Installers

  • linux-64 v2.16.0
  • linux-aarch64 v2.16.0
  • linux-s390x v2.16.0
  • osx-64 v2.16.0
  • osx-arm64 v2.16.0
  • win-64 v2.16.0

conda install

To install this package run one of the following:
conda install main::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.


© 2024 Anaconda, Inc. All Rights Reserved. (v4.0.6) Legal | Privacy Policy