Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 3 additions & 6 deletions .github/workflows/tests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,13 @@ jobs:
fail-fast: false
matrix:
os:
- ubuntu-latest
- macos-latest
- macos-14
- macos-15
- macos-26
python:
- '3.14'
- '3.13'
- '3.12'
- '3.11'
tz:
- 'utc'
- 'cest'
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
Expand Down
2 changes: 2 additions & 0 deletions libfaketime/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,11 @@ def _should_fake(self):
def _should_patch_uuid(self):
# Return the name of the uuid time generate function, or None if not present.
# This must be patched to avoid uuid1 deadlocks in OS uuid libraries.
print("uuid params", repr(dir(uuid)))
if self._should_fake() and not self._prev_spec:
for func_name in self._uuid_func_names:
if hasattr(uuid, func_name):
print("patching", func_name)
return func_name

return None
Expand Down
Loading