diff options
author | Nick Coghlan <ncoghlan@gmail.com> | 2013-11-30 05:56:58 (GMT) |
---|---|---|
committer | Nick Coghlan <ncoghlan@gmail.com> | 2013-11-30 05:56:58 (GMT) |
commit | 1b1b1789d022095266c83d4ce441ae6d096afbcd (patch) | |
tree | 16133236a49017a2aec274b70ca793703da12f49 /Lib/test/test_venv.py | |
parent | 9730e335353b9cdb6f8016e27566ca7b43e42d09 (diff) | |
download | cpython-1b1b1789d022095266c83d4ce441ae6d096afbcd.zip cpython-1b1b1789d022095266c83d4ce441ae6d096afbcd.tar.gz cpython-1b1b1789d022095266c83d4ce441ae6d096afbcd.tar.bz2 |
Fix and test pip version consistency
Diffstat (limited to 'Lib/test/test_venv.py')
-rw-r--r-- | Lib/test/test_venv.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_venv.py b/Lib/test/test_venv.py index f53eb37..a92f492 100644 --- a/Lib/test/test_venv.py +++ b/Lib/test/test_venv.py @@ -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) |