branch | stable |
changeset 43412 | ca0cd0a13514 |
parent 43406 | c3bca833cb92 |
child 43455 | 6792da448437 |
--- a/tests/hghave.py Thu Oct 17 16:46:13 2019 -0400 +++ b/tests/hghave.py Mon Nov 04 23:42:18 2019 -0800 @@ -829,6 +829,17 @@ return os.path.exists('/dev/full') +@check("ensurepip", "ensurepip module") +def has_ensurepip(): + try: + import ensurepip + + ensurepip.bootstrap + return True + except ImportError: + return False + + @check("virtualenv", "Python virtualenv support") def has_virtualenv(): try: