mirror of
https://github.com/python/cpython.git
synced 2025-11-25 04:34:37 +00:00
gh-76760: test that uuid.uuid1() sets the version field (#139033)
This commit is contained in:
parent
2fc7004d54
commit
3a04be986a
2 changed files with 6 additions and 0 deletions
|
|
@ -737,6 +737,7 @@ def uuid1(node=None, clock_seq=None):
|
|||
is_safe = SafeUUID(safely_generated)
|
||||
except ValueError:
|
||||
is_safe = SafeUUID.unknown
|
||||
# The version field is assumed to be handled by _generate_time_safe().
|
||||
return UUID(bytes=uuid_time, is_safe=is_safe)
|
||||
|
||||
global _last_timestamp
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue