]> granicus.if.org Git - python/commit
bpo-28009: Fix uuid SkipUnless logic to be based on platform programs capable of...
authorMichael Felt <aixtools@users.noreply.github.com>
Sat, 15 Jun 2019 15:52:29 +0000 (17:52 +0200)
committerNick Coghlan <ncoghlan@gmail.com>
Sat, 15 Jun 2019 15:52:29 +0000 (01:52 +1000)
commit3a1d50e7e573efb577714146bed5c03b9c95f466
treecc30e69b8b2f3027fd524f4c71e25ff44871c7af
parent7a68f8c28bb78d957555a5001dac4df6345434a0
bpo-28009: Fix uuid SkipUnless logic to be based on platform programs capable of introspection (GH-12777)

uuid could try fallback methods that had no chance of working on a particular
platform, and this could cause spurious test failures, as well as degraded
performance as fallback options were tried and failed.

This fixes both the uuid module and its test's SkipUnless logic to use a
prefiltered list of techniques that may at least potentially work on that platform.

Patch by Michael Felt (aixtools).
Lib/test/test_uuid.py
Lib/uuid.py
Misc/NEWS.d/next/Tests/2019-04-11-07-59-43.bpo-28009.s85urF.rst [new file with mode: 0644]