#7380: Fix some str/bytearray/bytes issues in uuid docs and implementation.

This commit is contained in:
Georg Brandl 2009-12-19 18:23:28 +00:00
parent e231e39c28
commit 1d523e1ae1
3 changed files with 13 additions and 7 deletions

View file

@ -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.