mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
#7380: Fix some str/bytearray/bytes issues in uuid docs and implementation.
This commit is contained in:
parent
e231e39c28
commit
1d523e1ae1
3 changed files with 13 additions and 7 deletions
|
|
@ -1,5 +1,6 @@
|
|||
from unittest import TestCase
|
||||
from test import support
|
||||
import builtins
|
||||
import uuid
|
||||
|
||||
def importable(name):
|
||||
|
|
@ -176,6 +177,11 @@ class TestUUID(TestCase):
|
|||
for u in equivalents:
|
||||
for v in equivalents:
|
||||
equal(u, v)
|
||||
|
||||
# Bug 7380: "bytes" and "bytes_le" should give the same type.
|
||||
equal(type(u.bytes), builtins.bytes)
|
||||
equal(type(u.bytes_le), builtins.bytes)
|
||||
|
||||
ascending.append(u)
|
||||
|
||||
# Test comparison of UUIDs.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue