| Index | index by Group | index by Distribution | index by Vendor | index by creation date | index by Name | Mirrors | Help | Search |
| Name: python313-time-machine | Distribution: openSUSE Tumbleweed |
| Version: 3.1.0 | Vendor: openSUSE |
| Release: 1.1 | Build date: Tue Dec 9 22:22:28 2025 |
| Group: Development/Languages/Python | Build host: reproducible |
| Size: 114304 | Source RPM: python-time-machine-3.1.0-1.1.src.rpm |
| Packager: https://bugs.opensuse.org | |
| Url: https://github.com/adamchainz/time-machine | |
| Summary: Travel through time in your tests | |
This library mocks all functions from Python's standard library that return the current date or datetime. It can be used independently, as a function decorator, or as a context manager.
MIT
* Tue Dec 09 2025 Matej Cepl <mcepl@cepl.eu>
- Update to 3.1.0
- Optimize patching of uuid module. By avoiding using
unittest.mock, this small overhead from starting
time_machine.travel() has been reduced about 20x, from ~600ns
to ~30ns by one benchmark.
- Update to 3.0.0
- Remove mocking of time.monotonic() and time.monotonic_ns().
This mocking caused too many issues, such as causing freezes
in asyncio event loops (Issue #387), preventing
pytest-durations from timing tests correctly (Issue #505),
and triggering timeouts in psycopg (Issue #509). The root
cause here is that mocking the monotonic clock breaks its
contract, allowing it to move backwards when it’s meant to
only move forwards.
As an alternative, use unittest.mock to mock the monotonic
function for the specific tested modules that need it. That
means that your code should import monotonic() or
monotonic_ns() directly, so that your tests can mock it in
those places only.
- Parse str destinations with datetime.fromisoformat() first,
before falling back to dateutil if installed.
datetime.fromisoformat() can parse most valid ISO 8601
formats, with better performance and no extra dependencies.
- Make the dependency on dateutil optional.
- Rename the Coordinates class to Traveller, to match the
recommended context manager variable name.
- Drop Python 3.9 support.
- Make the escape_hatch functions raise ValueError when called
outside of time-travelling, rather than triggering
segmentation faults.
- Update to 2.19.0
- Add marker support to the pytest plugin. Decorate tests with
@pytest.mark.time_machine(<destination>) to set time during a test,
affecting function-level fixtures as well.
- Add asynchronous context manager support to time_machine.travel(). You can
now use async with time_machine.travel(...): in asynchronous code, per the
documentation.
- Import date and time functions once in the C extension.
- This should improve speed a little bit, and avoid segmentation faults when
the functions have been swapped out, such as when freezegun is in effect.
(time-machine still won’t apply if freezegun is in effect.)
- Update to 2.18.0
- Update the migration CLI to detect unittest classes based on whether they
use self.assert* methods like self.assertEqual().
- Fix free-threaded Python warning: RuntimeWarning: The global interpreter
lock (GIL) has been enabled... as seen on Python 3.13+.
- Add support to travel() for datetime destinations with tzinfo set to
datetime.UTC (datetime.timezone.utc).
- Prevent segmentation faults in unlikely scenarios, such as if the
time_machine module cannot be imported.
- Make travel() fully unpatch date and time functions when travel ends. This
may fix certain edge cases.
- Update to 2.17.0
- Include wheels for Python 3.14.
- Support free-threaded Python.
- Add a new CLI for migrating code from freezegun to time-machine.
- Install with pip install time-machine[cli] and run with python -m
time_machine migrate.
- Move the documentation to Read the Docs, and add a retro-futuristic logo.
* Wed Oct 30 2024 Dirk Müller <dmueller@suse.com>
- update to 2.16.0:
* Drop Python 3.8 support.
* Include wheels for Python 3.13.
* Sun Jun 30 2024 Dirk Müller <dmueller@suse.com>
- update to 2.14.2:
* Fix SystemError on Python 3.13 and Windows when starting time
travelling.
* Sat Apr 20 2024 Dirk Müller <dmueller@suse.com>
- update to 2.14.1:
* Fix segmentation fault when the first travel() call in a
process uses a timedelta.
* Thu Mar 14 2024 Dirk Müller <dmueller@suse.com>
- update to 2.14.0:
* Fix utcfromtimestamp() warning on Python 3.12+.
* Fix utcfromtimestamp() warning on Python 3.12+.
* Fix class decorator for classmethod overrides.
* Avoid calling deprecated uuid._load_system_functions() on
Python 3.9+.
* Avoid calling deprecated uuid._load_system_functions() on
Python 3.9+.
* Thanks to Nikita Sobolev for the ping in CPython Issue
* Support Python 3.13 alpha 4.
* Thu Nov 09 2023 ecsos <ecsos@opensuse.org>
- Update to 2.13.0
- Add support for datetime.timedelta to time_machine.travel().
- Fix documentation about using local time for naive date(time) strings.
- Add shift() method to the time_machine pytest fixture.
- Mock time.monotonic() and time.monotonic_ns().
They return the values of time.time() and time.time_ns()
respectively, rather than real monotonic clocks.
- Changes from 2.12.0
- Include wheels for Python 3.12.
- Changes from 2.11.0
- Drop Python 3.7 support.
- Changes from 2.10.0
- Support Python 3.12.
* Fri Jun 09 2023 ecsos <ecsos@opensuse.org>
- Add %{?sle15_python_module_pythons}
* Wed May 31 2023 Ben Greiner <code@bnavigator.de>
- Move to PEP517
- Do not use pytzdata, but system timezone directly
- Don't catchall sitearch
* Sat May 27 2023 Dirk Müller <dmueller@suse.com>
- update to 2.9.0:
* Explicitly error when attempting to install on PyPy.
* Tue Apr 11 2023 Dominique Leuenberger <dimstar@opensuse.org>
- BuildRequire python38-backports.zoneinfo only when python38-base
is present in the buildsystem: fix build on distros where python
3.8 is no longer in the supported set of python interpreters.
* Sat Oct 29 2022 Yogalakshmi Arunachalam <yarunachalam@suse.com>
- Update to version 2.8.2
* Improve type hints for time_machine.travel() to preserve the types of the wrapped function/coroutine/class.
* Thu Aug 18 2022 Sebastian Wagner <sebix+novell.com@sebix.at>
- update to version 2.8.1:
- Actually build Python 3.11 wheels.
- update to version 2.8.0:
- Build Python 3.11 wheels.
- update to version 2.7.1:
- Fix usage of ``ZoneInfo`` from the ``backports.zoneinfo`` package.
This makes ``ZoneInfo`` support work for Python < 3.9.
- update to version 2.7.0:
- Support Python 3.11 (no wheels yet, they will only be available when Python 3.11 is RC when the ABI is stable).
* Tue Jan 11 2022 Sebastian Wagner <sebix+novell.com@sebix.at>
- Limit package to python >= 3.7
* Mon Jan 10 2022 Sebastian Wagner <sebix+novell.com@sebix.at>
- update to version 2.6.0:
* Drop Python 3.6 support.
/usr/lib64/python3.13/site-packages/_time_machine.cpython-313-riscv64-linux-gnu.so /usr/lib64/python3.13/site-packages/time_machine /usr/lib64/python3.13/site-packages/time_machine-3.1.0.dist-info /usr/lib64/python3.13/site-packages/time_machine-3.1.0.dist-info/INSTALLER /usr/lib64/python3.13/site-packages/time_machine-3.1.0.dist-info/METADATA /usr/lib64/python3.13/site-packages/time_machine-3.1.0.dist-info/RECORD /usr/lib64/python3.13/site-packages/time_machine-3.1.0.dist-info/REQUESTED /usr/lib64/python3.13/site-packages/time_machine-3.1.0.dist-info/WHEEL /usr/lib64/python3.13/site-packages/time_machine-3.1.0.dist-info/entry_points.txt /usr/lib64/python3.13/site-packages/time_machine-3.1.0.dist-info/licenses /usr/lib64/python3.13/site-packages/time_machine-3.1.0.dist-info/licenses/LICENSE /usr/lib64/python3.13/site-packages/time_machine-3.1.0.dist-info/top_level.txt /usr/lib64/python3.13/site-packages/time_machine/__init__.py /usr/lib64/python3.13/site-packages/time_machine/__main__.py /usr/lib64/python3.13/site-packages/time_machine/__pycache__ /usr/lib64/python3.13/site-packages/time_machine/__pycache__/__init__.cpython-313.opt-1.pyc /usr/lib64/python3.13/site-packages/time_machine/__pycache__/__init__.cpython-313.pyc /usr/lib64/python3.13/site-packages/time_machine/__pycache__/__main__.cpython-313.opt-1.pyc /usr/lib64/python3.13/site-packages/time_machine/__pycache__/__main__.cpython-313.pyc /usr/lib64/python3.13/site-packages/time_machine/__pycache__/cli.cpython-313.opt-1.pyc /usr/lib64/python3.13/site-packages/time_machine/__pycache__/cli.cpython-313.pyc /usr/lib64/python3.13/site-packages/time_machine/cli.py /usr/lib64/python3.13/site-packages/time_machine/py.typed /usr/share/doc/packages/python313-time-machine /usr/share/doc/packages/python313-time-machine/HISTORY.rst /usr/share/doc/packages/python313-time-machine/README.rst /usr/share/licenses/python313-time-machine /usr/share/licenses/python313-time-machine/LICENSE
Generated by rpm2html 1.8.1
Fabrice Bellet, Mon Jan 19 22:32:45 2026