]> granicus.if.org Git - python/commitdiff
Fix and test pip version consistency
authorNick Coghlan <ncoghlan@gmail.com>
Sat, 30 Nov 2013 05:56:58 +0000 (15:56 +1000)
committerNick Coghlan <ncoghlan@gmail.com>
Sat, 30 Nov 2013 05:56:58 +0000 (15:56 +1000)
Lib/ensurepip/__init__.py
Lib/ensurepip/_bundled/pip-1.5rc1-py2.py3-none-any.whl [moved from Lib/ensurepip/_bundled/pip-1.5.rc1-py2.py3-none-any.whl with 100% similarity]
Lib/test/test_venv.py

index 0fdacdad66e310801677af2c6ae3050882d89333..1a644da6349afec34996b1cd7c943a0fa1dd2ddd 100644 (file)
@@ -12,7 +12,7 @@ __all__ = ["version", "bootstrap"]
 
 _SETUPTOOLS_VERSION = "1.3.2"
 
-_PIP_VERSION = "1.5.rc1"
+_PIP_VERSION = "1.5rc1"
 
 _PROJECTS = [
     ("setuptools", _SETUPTOOLS_VERSION),
index f53eb37dc7147bda0865f96cbd71dac04e4f0a29..a92f4929da175a8420fa74ae546de1c69938e778 100644 (file)
@@ -5,6 +5,7 @@ Copyright (C) 2011-2012 Vinay Sajip.
 Licensed to the PSF under a contributor agreement.
 """
 
+import ensurepip
 import os
 import os.path
 import shutil
@@ -313,8 +314,9 @@ class EnsurePipTest(BaseTest):
         err = err.decode("latin-1") # Force to text, prevent decoding errors
         self.assertEqual(err, "")
         out = out.decode("latin-1") # Force to text, prevent decoding errors
+        expected_version = "pip {}".format(ensurepip.version())
+        self.assertEqual(out[:len(expected_version)], expected_version)
         env_dir = os.fsencode(self.env_dir).decode("latin-1")
-        self.assertTrue(out.startswith("pip"))
         self.assertIn(env_dir, out)