]> granicus.if.org Git - python/commit
bpo-28009: Fix uuid SkipUnless logic to be based on platform programs capable of...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 15 Jun 2019 16:10:34 +0000 (09:10 -0700)
committerGitHub <noreply@github.com>
Sat, 15 Jun 2019 16:10:34 +0000 (09:10 -0700)
commitf0e5c01182daefa20c624383c8a37c25eacfde43
treea01f001fb217d47e1059c0f8bd9ec5c1d11e8a9b
parent298023633fde5cd60926a2923a01d896550cbf84
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).
(cherry picked from commit 3a1d50e7e573efb577714146bed5c03b9c95f466)

Co-authored-by: Michael Felt <aixtools@users.noreply.github.com>
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]