Home | History | Annotate | Download | only in test

Lines Matching refs:venv

2 Test harness for the venv module.
19 import venv
33 'Test not appropriate in a venv')
36 """Base class for venv tests."""
73 """Test venv module functionality."""
84 self.run_with_capture(venv.create, self.env_dir)
114 builder = venv.EnvBuilder()
118 builder = venv.EnvBuilder(prompt='My prompt')
131 # check a venv's prefixes
133 self.run_with_capture(venv.create, self.env_dir)
180 venv.create(self.env_dir)
187 builder = venv.EnvBuilder(clear=True)
207 self.assertRaises((ValueError, OSError), venv.create, self.env_dir)
216 # the venv).
218 builder = venv.EnvBuilder(upgrade=upgrade)
236 builder = venv.EnvBuilder(clear=True, system_site_packages=ssp)
247 builder = venv.EnvBuilder(clear=True, symlinks=usl)
256 # If a venv is created from a source build and that venv is used to
257 # run the test, the pyvenv.cfg in the venv created in the test will
258 # point to the venv being used to run the test, and we lose the link
266 self.run_with_capture(venv.create, self.env_dir)
280 builder = venv.EnvBuilder(clear=True, symlinks=True)
292 """Test venv module installation of pip."""
311 self.run_with_capture(venv.create, self.env_dir)
316 self.run_with_capture(venv.create, self.env_dir, with_pip=False)
338 # environment settings don't cause venv to fail.
343 # to check that ensurepip (and hence venv) ignores it.
366 self.run_with_capture(venv.create, self.env_dir,