Commit ce091ae5 authored by Rudi Chen's avatar Rudi Chen

Make test fallback to not using CTypes even though we can import it.

The test was passing before by using the fallback behavior, but
importing ctypes successfully makes it try to use it and fails.
parent 719d4e91
import uuid
print len(str(uuid.uuid1()))
# Hack to get the test passing until we support CTypes.
# The problem is that we currently support import CTypes but it doesn't run
# correctly, so uuid fails without a fallback to using non-CTypes functions.
# This makes the uuid module think CTypes is not present.
uuid._uuid_generate_random = None
print len(str(uuid.uuid4()))
print uuid.uuid3(uuid.NAMESPACE_DNS, 'python.org')
print uuid.uuid5(uuid.NAMESPACE_DNS, 'python.org')
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment