diff options
author | Georg Brandl <georg@python.org> | 2009-12-19 18:23:28 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2009-12-19 18:23:28 (GMT) |
commit | 1d523e1ae18d5a021c11beaca4ba664e0a6786e9 (patch) | |
tree | 9912aa0d65437c9d746164c90b1cdc027220c501 /Lib/test/test_uuid.py | |
parent | e231e39c2851e93254344626e05e81f1b543f88a (diff) | |
download | cpython-1d523e1ae18d5a021c11beaca4ba664e0a6786e9.zip cpython-1d523e1ae18d5a021c11beaca4ba664e0a6786e9.tar.gz cpython-1d523e1ae18d5a021c11beaca4ba664e0a6786e9.tar.bz2 |
#7380: Fix some str/bytearray/bytes issues in uuid docs and implementation.
Diffstat (limited to 'Lib/test/test_uuid.py')
-rw-r--r-- | Lib/test/test_uuid.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Lib/test/test_uuid.py b/Lib/test/test_uuid.py index b749abc..89e221b 100644 --- a/Lib/test/test_uuid.py +++ b/Lib/test/test_uuid.py @@ -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. |