correct check for _uuid_generate_time (#388)

If ctypes is not available, _uuid_generate_time will be None not its restype attribute.
This commit is contained in:
Benjamin Peterson 2017-03-01 21:53:14 -08:00 committed by GitHub
parent 1e68716fd5
commit 0b8432538a
1 changed files with 1 additions and 1 deletions

View File

@ -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):