Kaydet (Commit) 0b843253 authored tarafından Benjamin Peterson's avatar Benjamin Peterson Kaydeden (comit) GitHub

correct check for _uuid_generate_time (#388)

If ctypes is not available, _uuid_generate_time will be None not its restype attribute.
üst 1e68716f
......@@ -340,7 +340,7 @@ class TestUUID(unittest.TestCase):
equal(((u.clock_seq_hi_variant & 0x3f) << 8) |
u.clock_seq_low, 0x3fff)
@unittest.skipUnless(uuid._uuid_generate_time.restype is not None,
@unittest.skipUnless(uuid._uuid_generate_time is not None,
'requires uuid_generate_time_safe(3)')
@unittest.skipUnless(importable('ctypes'), 'requires ctypes')
def test_uuid1_safe(self):
......
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