Skip to content

Segmentation fault on escape_hatch.time.time() when not escape_hatch.is_travelling() #549

@millerdev

Description

@millerdev

Python Version

3.13.6

pytest Version

n/a

Package Version

2.17.0

Description

Reproduction steps

$ uv venv ~/code/venv/tm
Using CPython 3.13.6 interpreter at: /usr/bin/python
Creating virtual environment at: code/venv/tm
Activate with: source code/venv/tm/bin/activate

$ source code/venv/tm/bin/activate

(tm) $ uv pip install time-machine
Using Python 3.13.6 environment at: code/venv/tm
Resolved 3 packages in 593ms
Installed 3 packages in 33ms
Bytecode compiled 23 files in 103ms
 + python-dateutil==2.9.0.post0
 + six==1.17.0
 + time-machine==2.17.0

(tm) $ python -c 'import time_machine; time_machine.escape_hatch.time.time()'
Segmentation fault (core dumped)

Expected: time_machine.escape_hatch.time.time() should return the un-mocked result of time.time(), even when not time traveling.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions