(self)
| 906 | class EnsurePipTest(BaseTest): |
| 907 | """Test venv module installation of pip.""" |
| 908 | def assert_pip_not_installed(self): |
| 909 | out, err = check_output([self.envpy(real_env_dir=True), '-c', |
| 910 | 'try:\n import pip\nexcept ImportError:\n print("OK")']) |
| 911 | # We force everything to text, so unittest gives the detailed diff |
| 912 | # if we get unexpected results |
| 913 | err = err.decode("latin-1") # Force to text, prevent decoding errors |
| 914 | self.assertEqual(err, "") |
| 915 | out = out.decode("latin-1") # Force to text, prevent decoding errors |
| 916 | self.assertEqual(out.strip(), "OK") |
| 917 | |
| 918 | |
| 919 | def test_no_pip_by_default(self): |
no test coverage detected